summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbgkillas2020-12-07 21:43:27 -0500
committerbgkillas2020-12-07 21:43:27 -0500
commitd0236a7198b205165a8c738f6dbe71fc02d9886a (patch)
tree3a8c3d64cb0ebc3e76c7fc99869c75ed213c550b /PKGBUILD
parent834d12865d335af309418194479dd7df986d7301 (diff)
downloadaur-p7zip-jinfeihan57-git.tar.gz
auto version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 83ecbe98bb7..d610dbf48a7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: bgkillas <bgkillas@gmail.com>
pkgname=p7zip-jinfeihan57-git
pkgdesc="Command-line file archiver with high compression ratio - jinfeihan57 fork"
-pkgver=17.02
+pkgver=17.02_r250.a666ee0
pkgrel=1
arch=('x86_64')
makedepends=('git')
@@ -19,6 +19,10 @@ build () {
cd p7zip
make 7z
}
+pkgver() {
+cd p7zip
+echo $(sed 'x;$!d;s/.*VERSION\ \"//;s/".*//' C/7zVersion.h)_r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
package() {
mkdir -p "$pkgdir/usr/lib/p7zip/Codecs"
mkdir -p "$pkgdir/usr/bin"