diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 33 insertions, 26 deletions
@@ -1,14 +1,15 @@ pkgbase = shc-git - pkgdesc = A generic shell script compiler. - pkgver = 4.0.3 + pkgdesc = Generic shell script compiler + pkgver = 4.0.3.r10.6495e11e pkgrel = 1 url = https://github.com/neurobin/shc - arch = any - license = GPLv3 + arch = x86_64 + license = GPL3 + makedepends = git + depends = glibc provides = shc conflicts = shc - source = shc::git+https://github.com/neurobin/shc.git - md5sums = SKIP + source = git+https://github.com/neurobin/shc.git + b2sums = SKIP pkgname = shc-git - @@ -1,31 +1,37 @@ -# Maintainer: wangjiezhe <wangjiezhe AT yandex DOT com> +# Maintainer: éclairevoyant -pkgname=shc-git _pkgname=shc -pkgver=4.0.3 +pkgname=shc-git +pkgver=4.0.3.r10.6495e11e pkgrel=1 -pkgdesc="A generic shell script compiler." -arch=('any') -url="https://github.com/neurobin/shc" -license=('GPLv3') -provides=("shc") -conflicts=("shc") -source=("$_pkgname::git+${url}.git") -md5sums=('SKIP') +pkgdesc="Generic shell script compiler" +arch=(x86_64) +url="https://github.com/neurobin/$_pkgname" +license=(GPL3) +depends=(glibc) +makedepends=(git) +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("git+$url.git") +b2sums=('SKIP') pkgver() { - cd $_pkgname - git describe --tags | sed 's/^v//;s/-/./g' + cd $_pkgname + git blame -s -L"/^PACKAGE_VERSION=/,+1" configure | awk '{ + ver = gensub(/[^0-9.]/, "", "g", $3); + "git rev-list --count "$1"..HEAD" | getline commit_count; + print ver".r"commit_count"."$1 + }' } build() { - cd $_pkgname - ./autogen.sh - ./configure --prefix=/usr - make + cd $_pkgname + ./autogen.sh + ./configure --prefix=/usr + make } package() { - cd $_pkgname - make DESTDIR="$pkgdir/" install + cd $_pkgname + make DESTDIR="$pkgdir/" install } |