void-packages/srcpkgs/zzuf/template

27 lines
814 B
Bash

# Template build file for 'zzuf'.
pkgname=zzuf
version=0.13
revision=3
build_style=gnu-configure
configure_args="--disable-static"
short_desc="Multi-purpose fuzzer"
maintainer="pancake <pancake@nopcode.org>"
homepage="http://caca.zoy.org/wiki/zzuf"
license="GPL-3"
distfiles="http://caca.zoy.org/files/zzuf/${pkgname}-${version}.tar.gz"
checksum=0842c548522028c3e0d9c9cf7d09f6320b661f33824bb6df19ca209851bdf627
post_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # Disable the *64 variants of libc functions because
# they are just macros calling the regular functions
sed -i config.h -e "/#define HAVE_.*64/s;#define \(HAVE_.*\);/* #undef \1 */;" ;;
esac
}
post_install() {
# Rename conflicting files
mv ${DESTDIR}/usr/share/man/man1/{zzcat,zzuf-cat}.1
mv ${DESTDIR}/usr/bin/{zzcat,zzuf-cat}
}