summaryrefslogtreecommitdiff
path: root/extra/neverball/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-24 22:48:50 +0000
committerroot <root@rshg047.dnsready.net>2011-05-24 22:48:50 +0000
commit363d953113a327863013a9422c8212654a86a209 (patch)
tree01f2b43d3e98433702f9c6ba92ab45bfa151888a /extra/neverball/PKGBUILD
parent87e20a64534e8f58ca4a4f84000b629e48569a98 (diff)
Tue May 24 22:48:50 UTC 2011
Diffstat (limited to 'extra/neverball/PKGBUILD')
-rw-r--r--extra/neverball/PKGBUILD56
1 files changed, 25 insertions, 31 deletions
diff --git a/extra/neverball/PKGBUILD b/extra/neverball/PKGBUILD
index 126f2b0c0..cd9c5a79b 100644
--- a/extra/neverball/PKGBUILD
+++ b/extra/neverball/PKGBUILD
@@ -1,15 +1,14 @@
-# $Id: PKGBUILD 63937 2010-01-19 04:44:36Z eric $
-# Maintainer: Eric Belanger <eric@archlinux.org>
-# Contributor: Ben <contrasutra@myrealbox.com>
+# $Id: PKGBUILD 124594 2011-05-23 08:40:29Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=neverball
pkgver=1.5.4
-pkgrel=2
+pkgrel=3
pkgdesc="3D game similar to Super Monkey Ball or Marble Madness"
arch=('i686' 'x86_64')
url="http://neverball.org/"
license=('GPL')
-depends=('sdl_ttf' 'libgl' 'libpng' 'libjpeg>=7' 'libvorbis' 'physfs')
+depends=('sdl_ttf' 'libgl' 'libpng' 'libjpeg' 'libvorbis' 'physfs')
makedepends=('mesa')
source=(http://neverball.org/${pkgname}-${pkgver}.tar.gz)
md5sums=('c523b0f72c2035831310e821162f7bd7')
@@ -17,36 +16,31 @@ sha1sums=('619c227e1958bd60738f12dbbde9b30c91dd79a7')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i 's|#define CONFIG_LOCALE "./locale"|#define CONFIG_LOCALE "/usr/share/locale"|' share/base_config.h || return 1
+ sed -i 's|#define CONFIG_LOCALE "./locale"|#define CONFIG_LOCALE "/usr/share/locale"|' share/base_config.h
if [ "${CARCH}" = "i686" ] ;then
- make ENABLE_NLS=1 DATADIR=/usr/share/neverball SSE_CFLAGS="" || return 1
+ make ENABLE_NLS=1 DATADIR=/usr/share/neverball SSE_CFLAGS=""
else
- make ENABLE_NLS=1 DATADIR=/usr/share/neverball || return 1
+ make ENABLE_NLS=1 DATADIR=/usr/share/neverball
fi
+}
- install -D -m755 neverball "${pkgdir}/usr/bin/neverball" || return 1
- install -D -m755 neverputt "${pkgdir}/usr/bin/neverputt" || return 1
- install -D -m755 mapc "${pkgdir}/usr/bin/mapc" || return 1
-
- install -d "${pkgdir}/usr/share/neverball"
- cp -r data/* "${pkgdir}/usr/share/neverball/" || return 1
+package(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}"/usr/share/{neverball,locale,applications,pixmaps,doc/neverball}
+ install -d "${pkgdir}"/usr/share/man/man{1,6}
+
+ install -m755 neverball neverputt mapc "${pkgdir}/usr/bin"
+ cp -r locale/* "${pkgdir}/usr/share/locale/"
+ cp -r data/* "${pkgdir}/usr/share/neverball/"
+ install -m644 doc/* "${pkgdir}/usr/share/doc/neverball/"
+ install -m644 dist/*.desktop "${pkgdir}/usr/share/applications/"
+ install -m644 dist/*.png "${pkgdir}/usr/share/pixmaps/"
+ install -m644 dist/mapc.1 "${pkgdir}/usr/share/man/man1"
+ install -m644 dist/{neverball.6,neverputt.6} "${pkgdir}/usr/share/man/man6"
+
+ ln -s neverball_48.png "${pkgdir}/usr/share/pixmaps/neverball.png"
+ ln -s neverputt_48.png "${pkgdir}/usr/share/pixmaps/neverputt.png"
find "${pkgdir}/usr/share/neverball" -type f -exec chmod 0644 {} \;
-
- install -d "${pkgdir}/usr/share/locale"
- cp -r locale/* "${pkgdir}/usr/share/locale/" || return 1
-
- install -d "${pkgdir}/usr/share/applications"
- install -d "${pkgdir}/usr/share/pixmaps"
- install -m644 dist/*.desktop "${pkgdir}/usr/share/applications/" || return 1
- install -m644 dist/*.png "${pkgdir}/usr/share/pixmaps/" || return 1
- ln -s neverball_48.png "${pkgdir}/usr/share/pixmaps/neverball.png" || return 1
- ln -s neverputt_48.png "${pkgdir}/usr/share/pixmaps/neverputt.png" || return 1
-
- install -d "${pkgdir}/usr/share/doc/neverball"
- install -m644 doc/* "${pkgdir}/usr/share/doc/neverball/" || return 1
-
- install -D -m644 dist/mapc.1 "${pkgdir}/usr/share/man/man1/mapc.1" || return 1
- install -D -m644 dist/neverball.6 "${pkgdir}/usr/share/man/man6/neverball.6" || return 1
- install -D -m644 dist/neverputt.6 "${pkgdir}/usr/share/man/man6/neverputt.6" || return 1
}