summaryrefslogtreecommitdiff
path: root/community/bsd-games
diff options
context:
space:
mode:
Diffstat (limited to 'community/bsd-games')
-rw-r--r--community/bsd-games/PKGBUILD14
-rw-r--r--community/bsd-games/config.params2
2 files changed, 10 insertions, 6 deletions
diff --git a/community/bsd-games/PKGBUILD b/community/bsd-games/PKGBUILD
index 00bb7c247..1b4ac12da 100644
--- a/community/bsd-games/PKGBUILD
+++ b/community/bsd-games/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 86789 2013-03-22 02:13:44Z eric $
+# $Id: PKGBUILD 90951 2013-05-16 09:13:23Z lcarlier $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: SmackleFunky <smacklefunky@optusnet.com.au>
pkgname=bsd-games
pkgver=2.17
-pkgrel=13
+pkgrel=14
pkgdesc="A linux port for a collection of BSD command line games."
url="ftp://ftp.ibiblio.org/pub/Linux/games/"
arch=('i686' 'x86_64')
@@ -18,7 +18,7 @@ source=(ftp://ftp.ibiblio.org/pub/Linux/games/$pkgname-$pkgver.tar.gz
number.c.diff bsd-games-2.17-64bit.patch
bad-ntohl-cast.diff null-check.diff)
md5sums=('238a38a3a017ca9b216fc42bde405639'
- '9916baef5cb8aa09361f67de12ca7bef'
+ '2ea80281ee9993a9ee47323e78349a2a'
'784f68c796b9e099ac008aecef1af998'
'9c0fa6e2345bd0a7945c9a41d5ba68aa'
'5356bd6999ae53dd27cb2a0f837a3e70'
@@ -27,8 +27,9 @@ md5sums=('238a38a3a017ca9b216fc42bde405639'
'3d21a9dad2e603ddf3842972e4ff85a1'
'a43ca0b4b9ebc4eec26372c52014ac0a')
-build() {
+prepare() {
cd "${srcdir}/$pkgname-$pkgver"
+
[ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch"
cp "${srcdir}/config.params" .
@@ -63,8 +64,11 @@ build() {
# Prior to release 2.17-10 of the ArchLinux package, wargames was
# broken, since binaries are in /usr/bin instead.
sed -i -e 's|/usr/games|/usr/bin|g' wargames/wargames
+}
+
+build() {
+ cd "${srcdir}/$pkgname-$pkgver"
-# Build.
./configure
make
}
diff --git a/community/bsd-games/config.params b/community/bsd-games/config.params
index 6afa0e43f..f061d8f26 100644
--- a/community/bsd-games/config.params
+++ b/community/bsd-games/config.params
@@ -2,7 +2,7 @@ bsd_games_cfg_non_interactive=y
bsd_games_cfg_install_prefix=PKGDIR
bsd_games_cfg_no_build_dirs='banner fortune wtf factor monop'
bsd_games_cfg_gamesdir=/usr/bin
-bsd_games_cfg_sbindir=/usr/sbin
+bsd_games_cfg_sbindir=/usr/bin
bsd_games_cfg_man6dir=/usr/share/man/man6
bsd_games_cfg_man5dir=/usr/share/man/man5
bsd_games_cfg_man8dir=/usr/share/man/man8