summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Bezies2021-05-28 14:23:10 +0200
committerFrederic Bezies2021-05-28 14:23:10 +0200
commita997b7f24fd6be0056c744690adb88818765c528 (patch)
tree03c3996cea3ac87ee4be66386c523e2690af89e1
parentd0236a7198b205165a8c738f6dbe71fc02d9886a (diff)
downloadaur-a997b7f24fd6be0056c744690adb88818765c528.tar.gz
Adopted and cleaned up PKGBUILD
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD37
2 files changed, 23 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 48dff96b2bd..d2c2f808014 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = p7zip-jinfeihan57-git
pkgdesc = Command-line file archiver with high compression ratio - jinfeihan57 fork
- pkgver = 17.02
+ pkgver = v17.04.r6.geb1bbb0
pkgrel = 1
url = https://github.com/jinfeihan57/p7zip
arch = x86_64
- license = GNU LGPL
+ license = LGPL
makedepends = git
+ depends = gcc-libs
provides = p7zip
conflicts = p7zip
source = git+https://github.com/jinfeihan57/p7zip.git
diff --git a/PKGBUILD b/PKGBUILD
index d610dbf48a7..18ea3a4dbf8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,36 @@
-# Maintainer: bgkillas <bgkillas@gmail.com>
+# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
+# Contributor: bgkillas <bgkillas@gmail.com>
pkgname=p7zip-jinfeihan57-git
pkgdesc="Command-line file archiver with high compression ratio - jinfeihan57 fork"
-pkgver=17.02_r250.a666ee0
+pkgver=v17.04.r6.geb1bbb0
pkgrel=1
arch=('x86_64')
makedepends=('git')
-depends=()
+depends=(gcc-libs)
optdepends=()
provides=('p7zip')
conflicts=('p7zip')
url="https://github.com/jinfeihan57/p7zip"
-license=('GNU LGPL')
+license=('LGPL')
source=('git+https://github.com/jinfeihan57/p7zip.git'
'7z')
sha512sums=('SKIP'
'SKIP')
-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)
+ cd p7zip
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
+
+build () {
+ cd p7zip
+ make 7z
+}
+
package() {
-mkdir -p "$pkgdir/usr/lib/p7zip/Codecs"
-mkdir -p "$pkgdir/usr/bin"
-install -Dm755 "7z" "$pkgdir/usr/bin/"
-install -Dm755 "$srcdir/p7zip/bin/7z" "$pkgdir/usr/lib/p7zip/"
-install -Dm755 "$srcdir/p7zip/bin/7z.so" "$pkgdir/usr/lib/p7zip/"
-install -Dm755 "$srcdir/p7zip/bin/Codecs/Rar.so" "$pkgdir/usr/lib/p7zip/Codecs"
-} \ No newline at end of file
+ mkdir -p "$pkgdir/usr/lib/p7zip/Codecs"
+ mkdir -p "$pkgdir/usr/bin"
+ install -Dm755 "7z" "$pkgdir/usr/bin/"
+ install -Dm755 "$srcdir/p7zip/bin/7z" "$pkgdir/usr/lib/p7zip/"
+ install -Dm755 "$srcdir/p7zip/bin/7z.so" "$pkgdir/usr/lib/p7zip/"
+ install -Dm755 "$srcdir/p7zip/bin/Codecs/Rar.so" "$pkgdir/usr/lib/p7zip/Codecs"
+}