New package: libzahl-1.0

Closes: #10738 [via git-merge-pr]
This commit is contained in:
copyleftie 2018-01-12 17:21:57 -05:00 committed by Jürgen Buchmüller
parent 9c52e1524f
commit a47437edec
1 changed files with 25 additions and 0 deletions

25
srcpkgs/libzahl/template Normal file
View File

@ -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 <copyleftie@protonmail.com>"
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
}