summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linhes/libfastjson/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/linhes/libfastjson/PKGBUILD b/linhes/libfastjson/PKGBUILD
index eb59293..194470f 100644
--- a/linhes/libfastjson/PKGBUILD
+++ b/linhes/libfastjson/PKGBUILD
@@ -1,21 +1,27 @@
pkgname=libfastjson
-pkgver=1.2304.0
+pkgver=1.2304.0.r5.gf1983a8
pkgrel=1
pkgdesc="A performance-focused json library for C"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://github.com/rsyslog/libfastjson"
license=('GPL')
-source=($pkgname-$pkgver.tar.gz::https://github.com/rsyslog/$pkgname/archive/v$pkgver.tar.gz)
-sha256sums=('6c18848c75b179108429fc2818273551c68ffe6ddd5e414c20c071c844befbc1')
+makedepends=("git")
+source=(git+https://github.com/rsyslog/libfastjson)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
autoreconf -fvi
./configure --prefix=/usr
make
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
make DESTDIR="$pkgdir/" install
}