From a47437edecb427504feec9dfc632dfa521a60567 Mon Sep 17 00:00:00 2001 From: copyleftie Date: Fri, 12 Jan 2018 17:21:57 -0500 Subject: [PATCH] New package: libzahl-1.0 Closes: #10738 [via git-merge-pr] --- srcpkgs/libzahl/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/libzahl/template 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 +}