abuild/tests/testrepo/test-pkgname/APKBUILD

34 lines
519 B
Plaintext
Raw Normal View History

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# test package
pkgname=${TESTNAME-test-pkgname}
pkgver="1.0"
pkgrel=0
pkgdesc="Dummy test package that fails to build"
url="https://gitlab.alpinelinux.org/alpine/aports"
arch="noarch"
license="MIT"
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"
}