diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-04-19 12:40:04 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-04-19 12:40:04 +0200 |
commit | d186e96728bff4cc4873c59d48d01fe6eefe6131 (patch) | |
tree | 1eefcef8058414b07b2750f52d9746f5323472ff /extra/neverball | |
parent | 84c217e2d9acc64713978324761816e2468b5292 (diff) | |
parent | 1fedf1f5d5351aefd88268cba7353c79adac9b8a (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/collectd/PKGBUILD
community/drivel/PKGBUILD
community/fcitx-mozc/PKGBUILD
community/gnomesu/PKGBUILD
community/gnuchess/PKGBUILD
community/gphpedit/PKGBUILD
community/gsql/PKGBUILD
community/libmatchbox/PKGBUILD
community/lockfile-progs/PKGBUILD
community/opencc/PKGBUILD
community/roxterm/PKGBUILD
community/uriparser/PKGBUILD
community/xcircuit/PKGBUILD
core/bison/PKGBUILD
core/curl/PKGBUILD
core/expat/PKGBUILD
core/gcc/PKGBUILD
core/gpm/PKGBUILD
core/m4/PKGBUILD
core/systemd/PKGBUILD
core/tar/PKGBUILD
extra/alsa-lib/PKGBUILD
extra/alsa-utils/PKGBUILD
extra/bitlbee/PKGBUILD
extra/chkrootkit/PKGBUILD
extra/fakechroot/PKGBUILD
extra/farstream/PKGBUILD
extra/freeglut/PKGBUILD
extra/gob2/PKGBUILD
extra/libcdio-paranoia/PKGBUILD
extra/liblqr/PKGBUILD
extra/libnl1/PKGBUILD
extra/libpst/PKGBUILD
extra/libwpd/PKGBUILD
extra/xorg-server/PKGBUILD
Diffstat (limited to 'extra/neverball')
-rw-r--r-- | extra/neverball/PKGBUILD | 37 | ||||
-rw-r--r-- | extra/neverball/neverball.install | 11 |
2 files changed, 31 insertions, 17 deletions
diff --git a/extra/neverball/PKGBUILD b/extra/neverball/PKGBUILD index 1c3adfd90..a2c8d0df7 100644 --- a/extra/neverball/PKGBUILD +++ b/extra/neverball/PKGBUILD @@ -1,35 +1,36 @@ -# $Id: PKGBUILD 148860 2012-02-05 11:53:11Z ibiru $ +# $Id: PKGBUILD 183160 2013-04-18 02:16:47Z eric $ # Maintainer: Eric Bélanger <eric@archlinux.org> pkgname=neverball pkgver=1.5.4 -pkgrel=4 +pkgrel=5 pkgdesc="3D game similar to Super Monkey Ball or Marble Madness" arch=('i686' 'x86_64' 'mips64el') url="http://neverball.org/" license=('GPL') -depends=('sdl_ttf' 'libgl' 'libpng' 'libjpeg' 'libvorbis' 'physfs') +depends=('sdl_ttf' 'libgl' 'libpng' 'libjpeg' 'libvorbis' 'physfs' \ + 'hicolor-icon-theme' 'xdg-utils') makedepends=('mesa') +install=neverball.install source=(http://neverball.org/${pkgname}-${pkgver}.tar.gz neverball-1.5.4-underlink.patch) sha1sums=('619c227e1958bd60738f12dbbde9b30c91dd79a7' 'f71982b7187d569c57b30c4c40fedd6c0e72baca') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - sed -i 's|#define CONFIG_LOCALE "./locale"|#define CONFIG_LOCALE "/usr/share/locale"|' share/base_config.h +prepare() { + cd ${pkgname}-${pkgver} patch -p0 -i ../neverball-1.5.4-underlink.patch +} - if [ "${CARCH}" = "i686" ] ;then - make ENABLE_NLS=1 DATADIR=/usr/share/neverball SSE_CFLAGS="" - else - make ENABLE_NLS=1 DATADIR=/usr/share/neverball - fi +build() { + cd ${pkgname}-${pkgver} + make DATADIR=/usr/share/neverball LOCALEDIR=/usr/share/locale \ + CPPFLAGS="$CPPFLAGS -DNDEBUG" CFLAGS="$CFLAGS" } package(){ - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}"/usr/share/{neverball,locale,applications,pixmaps,doc/neverball} + install -d "${pkgdir}"/usr/share/{neverball,locale,applications,doc/neverball} install -d "${pkgdir}"/usr/share/man/man{1,6} install -m755 neverball neverputt mapc "${pkgdir}/usr/bin" @@ -37,11 +38,13 @@ package(){ 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 {} \; + for i in 16 24 32 48 64 128 256; do + install -D -m644 dist/neverball_$i.png "${pkgdir}/usr/share/icons/hicolor/${i}x$i/apps/neverball.png" + install -D -m644 dist/neverputt_$i.png "${pkgdir}/usr/share/icons/hicolor/${i}x$i/apps/neverputt.png" + done + + chmod -R u=rwX,go=rX "${pkgdir}/usr/share/neverball" } diff --git a/extra/neverball/neverball.install b/extra/neverball/neverball.install new file mode 100644 index 000000000..1c0de2e4f --- /dev/null +++ b/extra/neverball/neverball.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |