diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-05 23:54:28 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-06 00:08:03 +0100 |
commit | 531b1f32680e132eba4744ac1ea5ce9f8bc3dd10 (patch) | |
tree | 9dbb8ea5b4da83fc0073a19e592675cfef01ec10 | |
parent | 94d9bbd4bf20b21f3da2d692b3165f8f2fabcd8a (diff) | |
download | aports-531b1f32680e132eba4744ac1ea5ce9f8bc3dd10.tar.bz2 aports-531b1f32680e132eba4744ac1ea5ce9f8bc3dd10.tar.xz |
testing/bats: improve abuild and move libexec to lib
-rw-r--r-- | testing/bats/APKBUILD | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/testing/bats/APKBUILD b/testing/bats/APKBUILD index 18b47abb24..decc2c39a2 100644 --- a/testing/bats/APKBUILD +++ b/testing/bats/APKBUILD @@ -1,33 +1,29 @@ # Maintainer: Jose-Luis Rivas <ghostbar@riseup.net> pkgname=bats pkgver=0.4.0 -pkgrel=0 +pkgrel=1 pkgdesc="Bash Automated Testing System" url="https://github.com/sstephenson/bats" arch="noarch" license="MIT" depends="bash" -makedepends="$depends_dev bash" -install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/sstephenson/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" -_builddir="$srcdir"/$pkgname-$pkgver +package() { + cd "$builddir" -prepare() { - return 0 -} + mkdir -p "$pkgdir"/usr/lib/bats "$pkgdir"/usr/bin -build() { - return 0 -} + # Note: We don't use /usr/libexec in Alpine. + cp -r libexec/* "$pkgdir"/usr/lib/bats || return 1 + ln -s ../lib/bats/bats "$pkgdir"/usr/bin/bats -package() { - cd "$_builddir" - bash install.sh "$pkgdir"/usr || return 1 - ls "$pkgdir"/usr/bin/ + local i; for i in 1 7; do + install -m 644 -D man/bats.$i \ + "$pkgdir"/usr/share/man/man$i/bats.$i || return 1 + done } -md5sums="aeeddc0b36b8321930bf96fce6ec41ee bats-0.4.0.tar.gz" -sha256sums="480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7 bats-0.4.0.tar.gz" sha512sums="83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb bats-0.4.0.tar.gz" |