2014-12-10 18:24:39 +00:00
|
|
|
# Template file for 'fortune-mod'
|
|
|
|
pkgname=fortune-mod
|
|
|
|
version=1.99.1
|
2015-04-07 21:48:16 +00:00
|
|
|
revision=3
|
2014-12-11 17:58:32 +00:00
|
|
|
hostmakedepends="recode"
|
|
|
|
makedepends="recode-devel"
|
2014-12-10 18:24:39 +00:00
|
|
|
short_desc="Implementation of the BSDGames 'fortune' program"
|
|
|
|
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.redellipse.net/code/fortune"
|
|
|
|
distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
|
|
|
|
checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
|
2014-12-11 19:51:48 +00:00
|
|
|
nocross=yes
|
2014-12-10 18:24:39 +00:00
|
|
|
|
2014-12-11 17:58:32 +00:00
|
|
|
do_build() {
|
2015-04-07 21:48:16 +00:00
|
|
|
sed -i "s|^CFLAGS=.*|CFLAGS=${CFLAGS} -fsigned-char \$(DEFINES)|" Makefile
|
2014-12-11 17:58:32 +00:00
|
|
|
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
|
2014-12-10 18:24:39 +00:00
|
|
|
}
|