maintainer="Natanael Copa " pkgname=${TESTNAME-test-pkgname} pkgver="${TESTPKGVER-1.0}" pkgrel=0 pkgdesc="Dummy test package that fails to build" url="https://gitlab.alpinelinux.org/alpine/aports" arch="noarch" license="MIT" provides="${TESTPROVIDES-provided}" subpackages="${TESTSUBNAME-$pkgname-sub}:_sub" prepare() { mkdir -p "$builddir" } build() { touch foo } check() { true } package() { mkdir -p "$pkgdir" cp -r * "$pkgdir"/ } _sub() { depends="$pkgname=${TESTDEPVER-$pkgver-r$pkgrel}" mkdir -p "$subpkgdir" }