# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Test ebuild with a few large files, to benchmark merging"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
RESTRICT="binchecks strip"

src_install() {
	local destdir="${ED}/usr/share/${PN}"
	local i

	# 16 files of 128 MiB of random content.
	mkdir -p "${destdir}" || die
	for (( i = 0; i < 16; i++ )); do
		head -c 128M /dev/urandom > "${destdir}/${i}" || die
	done
}