summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Jensen2023-05-23 17:20:55 +0200
committerGabriel Jensen2023-05-23 17:20:55 +0200
commitff6b8d77163470f4ed6a7eff725c1059f99e6315 (patch)
treeb22ed81e9093df31763de12249948f7de1ab58ab
parent516e1dd72293d7d54bc61e7b4601576098cd73dd (diff)
Rewrite pkgbuild; Use development versioning; Depeond on zp at runtime;HEADmaster
-rw-r--r--PKGBUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 602e037..0140759 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,25 @@
# Maintainer: Gabriel Jensen
-pkgname=u8c
-pkgver=25.0.0
+pkgname=dux
+pkgver=0.0.0_38.5976195
pkgrel=1
-pkgdesc="Library for Unicode manipulation."
+pkgdesc="General purpose library."
arch=("any")
-url="https://mandelbrot.dk/delta/u8c"
+url="https://mandelbrot.dk/dux"
+depends=("zp")
makedepends=("git")
-source=("git+https://mandelbrot.dk/delta/u8c.git")
-license=("AGPL3")
+source=("git+https://mandelbrot.dk/dux")
+license=("LGPL3")
sha512sums=("SKIP")
pkgver() {
- cd "$srcdir/$pkgname"
- printf "%s.0.0" "$(($(git rev-list --count HEAD) - 1))"
+ cd "${srcdir}/dux"
+ printf "%s_%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed "s/-\(dev\|rel\)//g"
}
build() {
- cd "$srcdir/$pkgname"
- make -j$(nproc)
+ cd "${srcdir}/dux"
+ make -C"dux" -j$(($(nproc)+0x1))
}
package() {
- cd "$srcdir/$pkgname"
- make DESTDIR="$pkgdir/usr" thrdsafe=1 install
+ cd "${srcdir}/dux"
+ make -C"dux" HDRDIR="${pkgdir}/usr/include" LIBDIR="${pkgdir}/usr/lib" install
}
+