void-packages/srcpkgs/trinity/template
2020-01-02 18:25:06 +01:00

27 lines
714 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"
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
}