summaryrefslogtreecommitdiff
path: root/community/bsd-games/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/bsd-games/PKGBUILD')
-rw-r--r--community/bsd-games/PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/bsd-games/PKGBUILD b/community/bsd-games/PKGBUILD
index f91561543..d95896ebd 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' 'mips64el')
@@ -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
}