# Maintainer: Gabriel Jensen pkgname=dux pkgver=0.0.0_38.5976195 pkgrel=1 pkgdesc="General purpose library." arch=("any") url="https://mandelbrot.dk/dux" depends=("zp") makedepends=("git") source=("git+https://mandelbrot.dk/dux") license=("LGPL3") sha512sums=("SKIP") pkgver() { 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}/dux" make -C"dux" -j$(($(nproc)+0x1)) } package() { cd "${srcdir}/dux" make -C"dux" HDRDIR="${pkgdir}/usr/include" LIBDIR="${pkgdir}/usr/lib" install }