summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorn0vember-2016-09-20 16:49:40 +0200
committern0vember-2016-09-20 16:49:40 +0200
commit0d45791cdcd27e1de0bd80067969988c6750021b (patch)
tree5dc877628f91fab3f74aee24fbeb90c47cc29367
parent06ae9d30bc4ff9eebf2d6e469002b0ac31c1de8f (diff)
downloadaur-0d45791cdcd27e1de0bd80067969988c6750021b.tar.gz
ADD: Fix on a version
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 8 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bfd3ed0b4d1..890e6d570e0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bash_unit
pkgdesc = bash unit testing enterprise edition framework for professionals
- pkgver = 114.7732279
+ pkgver = 1.0.0
pkgrel = 1
url = https://github.com/pgrange/bash_unit
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index faaa4b554aa..572d1fb2769 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: n0vember <n0vember at half-9 dot net>
pkgname=bash_unit
-pkgver=114.7732279
+pkgver=1.0.0
pkgrel=1
pkgdesc="bash unit testing enterprise edition framework for professionals"
arch=('any')
@@ -10,18 +10,18 @@ depends=('bash')
source=(git+https://github.com/pgrange/bash_unit.git)
md5sums=('SKIP')
-pkgver() {
- cd "$pkgname"
- printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
build() {
- true
+ cd "$pkgname"
+ git checkout tags/v$pkgver -b v$pkgver
}
package() {
cd "$pkgname"
install -Dm755 -o root -g root bash_unit "$pkgdir/usr/bin/bash_unit"
+
+# TODO uncomment this and update pkgver when man is accessible through a release
+# install -dm755 ${pkgdir}/usr/share/man/man1
+# cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
}