From 5e56d4d693d1f8d2a4b1b0c33242b0b091f64c7e Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 15 May 2018 20:02:48 +0200 Subject: Initial commit --- .SRCINFO | 21 +++++++++++++++++++++ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..545d849 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = has-git + pkgdesc = checks presence of various command line tools and their versions on the path + pkgver = r70.5443d4c + pkgrel = 1 + url = https://github.com/kdabir/has + arch = i686 + arch = x86_64 + license = Apache + makedepends = git + makedepends = make + makedepends = gcc + makedepends = imagemagick + provides = has + provides = has + conflicts = has + conflicts = has + source = has-git::git+https://github.com/kdabir/has.git + md5sums = SKIP + +pkgname = has-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9c0edaf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: neodarz +# Contributor: neodarz + +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" +} -- cgit v1.2.1