fortune-mod: don't install offensive fortunes

Closes #36417.
This commit is contained in:
Andrew Benson 2022-03-30 16:39:24 -05:00
parent 8cc3c27fa0
commit 810bfcc20d

View file

@ -1,7 +1,7 @@
# Template file for 'fortune-mod'
pkgname=fortune-mod
version=1.99.1
revision=6
revision=7
hostmakedepends="recode"
makedepends="recode-devel"
short_desc="Implementation of the BSDGames 'fortune' program"
@ -11,6 +11,9 @@ homepage="http://www.redellipse.net/code/fortune"
distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
desc_option_offensive="Enable offensive fortunes"
build_options="offensive"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" fortune-mod"
_strfile="STRFILE=/usr/bin/strfile"
@ -30,7 +33,7 @@ do_build() {
}
do_install() {
make prefix=${DESTDIR} FORTDIR=${DESTDIR}/usr/bin \
COOKIEDIR=$DESTDIR/usr/share/fortunes \
COOKIEDIR=$DESTDIR/usr/share/fortunes OFFENSIVE=$(vopt_if offensive 1 0) \
install
vlicense LICENSE
}