summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorneodarz2018-05-15 20:02:48 +0200
committerneodarz2018-05-15 20:09:32 +0200
commit5e56d4d693d1f8d2a4b1b0c33242b0b091f64c7e (patch)
treeacc731262b2a716eaf8c80c5994815c70fa9bda2 /PKGBUILD
downloadaur-has-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9c0edaf1299
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: neodarz <neodarz@neodarz.net>
+# Contributor: neodarz <neodarz@neodarz.net>
+
+pkgbase=has-git
+pkgname=has-git
+_pkgname=has
+pkgver=r70.5443d4c
+pkgrel=1
+pkgdesc="checks presence of various command line tools and their versions on the path "
+arch=('i686' 'x86_64')
+url="https://github.com/kdabir/$_pkgname"
+license=('Apache')
+makedepends=(git make gcc imagemagick)
+provides=("$_pkgname" "has")
+conflicts=("$_pkgname" "has")
+source=("$pkgname"::"git+https://github.com/kdabir/$_pkgname.git")
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ ( set -o pipefail
+ git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm755 has "$pkgdir/usr/local/bin/has"
+}