void-packages/srcpkgs/outils/template

30 lines
909 B
Bash
Raw Normal View History

2014-12-25 18:02:32 +00:00
# Template file for 'outils'
pkgname=outils
2015-11-12 16:22:57 +00:00
version=0.3
2015-11-12 17:12:18 +00:00
revision=2
2014-12-25 18:02:32 +00:00
build_style=gnu-makefile
make_install_args="install install-calendars"
makedepends="libressl-devel"
2014-12-25 18:02:32 +00:00
depends="gcc" # for cpp(1)
2015-02-23 10:14:01 +00:00
conflicts="signify>=0 openbsd-rs>=0 vis-git>=0"
2014-12-25 18:02:32 +00:00
short_desc="Some non-standard OpenBSD tools"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="ISC, BSD"
homepage="https://github.com/chneukirchen/outils"
2015-02-23 16:24:05 +00:00
distfiles="https://github.com/chneukirchen/${pkgname}/archive/v${version}.tar.gz"
2015-11-12 16:22:57 +00:00
checksum=de4c947f8b71513c01a07e7f8e0958a891d3484cea0485d29ec531fa75042d64
2014-12-25 18:02:32 +00:00
2015-11-12 17:12:18 +00:00
pre_build() {
# Use <stdint.h> types everywhere
find src -type f -exec sed -i "{}" -e "s;u_int;uint;g" -e "s;u_char;uint8_t;g" \;
sed -i src/liboutils/sha1.c -e "s;uint i;uint32_t i;"
}
2014-12-25 18:02:32 +00:00
do_build() {
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS"
}
post_install() {
rm ${DESTDIR}/usr/bin/cksum ${DESTDIR}/usr/share/man/man1/cksum.1
}