[arch-commits] Commit in bash-bats/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sun Feb 14 08:42:20 UTC 2016


    Date: Sunday, February 14, 2016 @ 09:42:20
  Author: fyan
Revision: 161526

archrelease: copy trunk to community-any

Added:
  bash-bats/repos/community-any/
  bash-bats/repos/community-any/PKGBUILD
    (from rev 161525, bash-bats/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: bash-bats/repos/community-any/PKGBUILD (from rev 161525, bash-bats/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-02-14 08:42:20 UTC (rev 161526)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
+
+pkgname=bash-bats
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Bash Automated Testing System"
+arch=("any")
+url="https://github.com/sstephenson/bats"
+license=("MIT")
+depends=('bash')
+makedepends=('git')
+source=("git+https://github.com/sstephenson/bats.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+check() {
+  cd "${srcdir}/bats"
+  bin/bats --tap test
+}
+
+package() {
+  cd "${srcdir}/bats"
+  #./install.sh "$pkgdir/usr"
+
+  for fn in libexec/*; do
+    install -Dm755 ${fn} \
+      "${pkgdir}"/usr/lib/bats/$(basename ${fn})
+  done
+
+  install -dm755 "${pkgdir}"/usr/bin
+  ln -s ../lib/bats/bats "${pkgdir}"/usr/bin/bats
+  install -Dm744 man/bats.1 "${pkgdir}"/usr/share/man/man1/bats.1
+  install -Dm744 man/bats.7 "${pkgdir}"/usr/share/man/man7/bats.7
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list