29 lines
909 B
Bash
29 lines
909 B
Bash
# Template file for 'outils'
|
|
pkgname=outils
|
|
version=0.3
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_install_args="install install-calendars"
|
|
makedepends="libressl-devel"
|
|
depends="gcc" # for cpp(1)
|
|
conflicts="signify>=0 openbsd-rs>=0 vis-git>=0"
|
|
short_desc="Some non-standard OpenBSD tools"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="ISC, BSD"
|
|
homepage="https://github.com/chneukirchen/outils"
|
|
distfiles="https://github.com/chneukirchen/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=de4c947f8b71513c01a07e7f8e0958a891d3484cea0485d29ec531fa75042d64
|
|
|
|
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;"
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS"
|
|
}
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/usr/bin/cksum ${DESTDIR}/usr/share/man/man1/cksum.1
|
|
}
|