diff --git a/srcpkgs/libzahl/template b/srcpkgs/libzahl/template new file mode 100644 index 00000000000..30dfa4f43a1 --- /dev/null +++ b/srcpkgs/libzahl/template @@ -0,0 +1,25 @@ +# Template file for 'libzahl' +pkgname=libzahl +version=1.0 +revision=1 +short_desc="A library for arbitrary size integers" +maintainer="copyleftie " +license="ISC" +homepage="https://libs.suckless.org/libzahl" +distfiles="https://git.suckless.org/libzahl/snapshot/${pkgname}-${version}.tar.gz" +checksum=523ae1ba84b558fab3598f3d38885138c4df755cda403136102143f569b40162 + +post_extract() { + sed -i -e '/VERSION/{s/0.0/1.0/}' \ + -e '/CFLAGS/{s/=/+=/}' \ + -e 's/^LDFLAGS/#LDFLAGS/g' config.mk +} + +do_build() { + make CC="$CC" LDFLAGS="$LDFLAGS" ${makejobs} +} + +do_install() { + make PREFIX=/usr DESTDIR=${DESTDIR} install + vlicense LICENSE +}