mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
fortune-mod: use our CFLAGS/LDFLAGS.
This commit is contained in:
parent
5678453964
commit
81fede2385
1 changed files with 10 additions and 6 deletions
|
@ -1,17 +1,21 @@
|
||||||
# Template file for 'fortune-mod'
|
# Template file for 'fortune-mod'
|
||||||
pkgname=fortune-mod
|
pkgname=fortune-mod
|
||||||
version=1.99.1
|
version=1.99.1
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="recode recode-devel"
|
hostmakedepends="recode"
|
||||||
|
makedepends="recode-devel"
|
||||||
short_desc="Implementation of the BSDGames 'fortune' program"
|
short_desc="Implementation of the BSDGames 'fortune' program"
|
||||||
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
|
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://www.redellipse.net/code/fortune"
|
homepage="http://www.redellipse.net/code/fortune"
|
||||||
distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
|
distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
|
||||||
checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
|
checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
|
||||||
build_style=gnu-makefile
|
|
||||||
make_build_args="COOKIEDIR=/usr/share/fortunes"
|
|
||||||
|
|
||||||
pre_install() {
|
do_build() {
|
||||||
make_install_args="prefix=${DESTDIR} FORTDIR=${DESTDIR}/usr/bin COOKIEDIR=$DESTDIR/usr/share/fortunes"
|
sed -i "s|^CFLAGS=.*|CFLAGS=${CFLAGS} \$(DEFINES)|" Makefile
|
||||||
|
sed -i "s|^LDFLAGS=.*|LDFLAGS=${LDFLAGS}|" Makefile
|
||||||
|
make CC=$CC COOKIEDIR=/usr/share/fortunes
|
||||||
|
}
|
||||||
|
do_install() {
|
||||||
|
make prefix=${DESTDIR} FORTDIR=${DESTDIR}/usr/bin COOKIEDIR=$DESTDIR/usr/share/fortunes install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue