void-packages/srcpkgs/openbsd-file/template

29 lines
760 B
Bash

# Template file for 'openbsd-file'
pkgname=openbsd-file
version=6.2
revision=3
wrksrc="file-${version}"
build_style=gnu-configure
configure_args="--program-prefix=openbsd-"
hostmakedepends="automake libtool"
short_desc="Portable version of OpenBSD's privsep/sandboxed file(1) utility"
maintainer="Juan RP <xtraeme@gmail.com>"
license="ISC"
homepage="https://github.com/brynet/file/"
distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
system_accounts="_file"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS="-DREG_STARTEND=0"
makedepends+=" musl-legacy-compat"
fi
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall magic 444 /etc
vlicense LICENSE
}