diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-06 00:06:42 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-06 00:08:12 +0100 |
commit | b686016696350ad9b797274850c48809be02ac46 (patch) | |
tree | 53eaeed8b41686c943bb819f84f521f4209cdf4c /community/bats | |
parent | 531b1f32680e132eba4744ac1ea5ce9f8bc3dd10 (diff) | |
download | aports-b686016696350ad9b797274850c48809be02ac46.tar.bz2 aports-b686016696350ad9b797274850c48809be02ac46.tar.xz |
community/bats: move from testing
Diffstat (limited to 'community/bats')
-rw-r--r-- | community/bats/APKBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/bats/APKBUILD b/community/bats/APKBUILD new file mode 100644 index 0000000000..decc2c39a2 --- /dev/null +++ b/community/bats/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Jose-Luis Rivas <ghostbar@riseup.net> +pkgname=bats +pkgver=0.4.0 +pkgrel=1 +pkgdesc="Bash Automated Testing System" +url="https://github.com/sstephenson/bats" +arch="noarch" +license="MIT" +depends="bash" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/sstephenson/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +package() { + cd "$builddir" + + mkdir -p "$pkgdir"/usr/lib/bats "$pkgdir"/usr/bin + + # 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 + + 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 +} + +sha512sums="83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb bats-0.4.0.tar.gz" |