void-packages/srcpkgs/clens/template
2018-11-30 07:28:38 -02:00

22 lines
737 B
Bash

# Template file for 'clens'
pkgname=clens
version=0.7.0
revision=3
makedepends="libbsd-devel"
short_desc="Convenience library to aid in porting code from OpenBSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="ISC"
homepage="https://sourceforge.net/projects/clens/"
distfiles="$SOURCEFORGE_SITE/clens/clens-${version}.tar.gz"
checksum=064ac9954d38633e2cff6b696fd049dedc3e90b79acffbee1a87754bcf604267
do_build() {
sed -i 's,-Werror,,g' GNUmakefile
sed -i 's,u_char,unsigned char,g;s,u_int32_t,uint32_t,g;s,u_int,unsigned int,g;s,u_short,unsigned short,g' src/*.[ch]
mkdir -p obj
make ${makejobs} CC=$CC LOCALBASE=/usr
}
do_install() {
make DESTDIR=${DESTDIR} LOCALBASE=/usr install
vlicense config/debian/copyright LICENSE
}