void-packages/srcpkgs/lsof/template

31 lines
912 B
Bash

# Template file for 'lsof'
pkgname=lsof
version=4.99.3
revision=1
build_style=gnu-configure
configure_args="--enable-security --disable-liblsof"
hostmakedepends="automake groff"
checkdepends="util-linux procps-ng"
short_desc="LiSt Open Files"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="lsof"
homepage="https://github.com/lsof-org/lsof"
changelog="https://raw.githubusercontent.com/lsof-org/lsof/master/00DIST"
distfiles="https://github.com/lsof-org/lsof/releases/download/${version}/lsof-${version}.tar.gz"
checksum=86428a8881b0d1147a52058e853c775b83d794f0da685d549b2bfd07063ed1cd
post_extract() {
# Ensure tests always run
ln -sf /bin/true tests/CkTestDB
# Skip tests/LTsock on GitHub CI
# hostname/IP resolution fails in CI container
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
vsed -i Makefile.am -e '/^TESTS +=/s:tests/LTsock::g'
fi
}
post_install() {
vlicense COPYING
}