void-packages/srcpkgs/trinity/template

30 lines
733 B
Bash

# Template file for 'trinity'
pkgname=trinity
version=1.9
revision=1
build_style=gnu-configure
short_desc="Linux system call fuzzer"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2.0-only"
homepage="https://github.com/kernelslacker/trinity"
distfiles="https://github.com/kernelslacker/trinity/archive/v${version}.tar.gz"
checksum=9abd6cea3f6bd3b36794e038317d5ed6001dc52ad3b1cd7071f6cc7c5baecd3c
nocross="Mis-use of memfd_create declaration"
CFLAGS="-fcommon"
if [ "$CROSS_BUILD" ]; then
export CROSS_COMPILE=${XBPS_TARGET_TRIPLET}
fi
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -Dloff_t=off_t"
fi
do_install() {
vbin trinity
vdoc Documentation/HACKING.txt
vdoc Documentation/pro-tips.txt
vdoc README
}