diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -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 } + |