summaryrefslogtreecommitdiff
path: root/test/repo2/test-b
diff options
context:
space:
mode:
Diffstat (limited to 'test/repo2/test-b')
-rw-r--r--test/repo2/test-b/APKBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/repo2/test-b/APKBUILD b/test/repo2/test-b/APKBUILD
index 6c58e61..eda637e 100644
--- a/test/repo2/test-b/APKBUILD
+++ b/test/repo2/test-b/APKBUILD
@@ -12,28 +12,27 @@ makedepends=
install=
subpackages=
source=""
+builddir="$srcdir/$pkgname-$pkgver"
# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"
-_builddir="$srcdir"/$pkgname-$pkgver
-
prepare() {
- mkdir -p "$_builddir"
+ mkdir -p "$builddir"
}
build() {
- cd "$_builddir"
- cat > $pkgname << __EOF__
-#!/bin/sh
-echo "hello from $pkgname-$pkgver"
-__EOF__
+ cd "$builddir"
+ cat > $pkgname <<-EOF
+ #!/bin/sh
+ echo "hello from $pkgname-$pkgver"
+ EOF
}
package() {
- cd "$_builddir"
+ cd "$builddir"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
-md5sums="" #generate with 'abuild checksum'
+sha512sums="" #generate with 'abuild checksum'