summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2026-06-26 20:44:00 (GMT)
committerBritney Fransen <brfransen@gmail.com>2026-06-26 20:44:00 (GMT)
commit27aa304f71aa05037a20bf85b15972abdbd3faf0 (patch)
tree0780a672115cc89d6f4baa4460079b2c108e7afb
parent61e9f300e55b838a08d0b4437b49780912c97d4d (diff)
downloadlinhes_pkgbuild-27aa304f71aa05037a20bf85b15972abdbd3faf0.zip
linhes_pkgbuild-27aa304f71aa05037a20bf85b15972abdbd3faf0.tar.gz
linhes_pkgbuild-27aa304f71aa05037a20bf85b15972abdbd3faf0.tar.bz2
libfastjson-1.2304.0.r5.gf1983a8-1
-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
}