[arch-commits] Commit in bash-bats-assert/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Nov 9 23:43:17 UTC 2018
Date: Friday, November 9, 2018 @ 23:43:17
Author: felixonmars
Revision: 405362
archrelease: copy trunk to community-staging-any
Added:
bash-bats-assert/repos/community-staging-any/
bash-bats-assert/repos/community-staging-any/PKGBUILD
(from rev 405361, bash-bats-assert/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: bash-bats-assert/repos/community-staging-any/PKGBUILD (from rev 405361, bash-bats-assert/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-11-09 23:43:17 UTC (rev 405362)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
+
+pkgname=bash-bats-assert
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="Common assertions for Bats"
+arch=("any")
+url="https://github.com/ztombol/bats-assert"
+license=("custom:CC0")
+depends=('bash-bats-support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ztombol/bats-assert/archive/v$pkgver.tar.gz")
+sha512sums=('a1eba4e07bf03945e5427a8f3e89d6bde2cc7c2229229d0d8d7baf0ef6cd5bfa8e24a565fce5b2fd0bb8cb87f9eee70f7fc6c2ee42d1706a13c55c3af9467400')
+
+check() {
+ cd bats-assert-$pkgver
+ TEST_DEPS_DIR=/usr/lib bats test
+}
+
+package() {
+ cd bats-assert-$pkgver
+
+ for fn in *.bash; do
+ install -Dm755 $fn \
+ "$pkgdir"/usr/lib/bats-assert/$(basename $fn)
+ done
+
+ for fn in src/*.bash; do
+ install -Dm755 $fn \
+ "$pkgdir"/usr/lib/bats-assert/src/$(basename $fn)
+ done
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list