diff options
Diffstat (limited to 'community/supertuxkart')
-rw-r--r-- | community/supertuxkart/PKGBUILD | 11 | ||||
-rw-r--r-- | community/supertuxkart/supertuxkart.install | 12 |
2 files changed, 16 insertions, 7 deletions
diff --git a/community/supertuxkart/PKGBUILD b/community/supertuxkart/PKGBUILD index a31909eef..ce9b35417 100644 --- a/community/supertuxkart/PKGBUILD +++ b/community/supertuxkart/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 81785 2012-12-29 16:57:50Z arodseth $ +# $Id: PKGBUILD 98716 2013-10-17 11:38:17Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com> # Contributor: Allan McRae <allan@archlinux.org> @@ -6,7 +6,7 @@ pkgname=supertuxkart pkgver=0.8 -pkgrel=3 +pkgrel=4 pkgdesc='Kart racing game featuring Tux and his friends' arch=('i686' 'x86_64') url='http://supertuxkart.sourceforge.net/' @@ -14,16 +14,16 @@ license=('GPL2') depends=('openal' 'libvorbis' 'libgl' 'fribidi' 'curl') makedepends=('cmake' 'subversion' 'mesa' 'imagemagick' 'setconf') source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2") +install=supertuxkart.install md5sums=('0b939ce601374758938119e0b0dd1fec') build() { cd ${srcdir}/SuperTuxKart-${pkgver} - convert "data/${pkgname}_64.xpm" "data/$pkgname.png" _fn="data/${pkgname}_desktop.template" setconf "$_fn" Exec "$pkgname --log=file" setconf "$_fn" TryExec "$pkgname" - setconf "$_fn" Icon "$pkgname" + setconf "$_fn" Icon "$pkgname"_64 cd lib/irrlicht/source/Irrlicht NDEBUG=1 make @@ -48,9 +48,6 @@ package() { cd build make DESTDIR=${pkgdir} install - - cd ../data - install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" } # vim:set ts=2 sw=2 et: diff --git a/community/supertuxkart/supertuxkart.install b/community/supertuxkart/supertuxkart.install new file mode 100644 index 000000000..41f09f887 --- /dev/null +++ b/community/supertuxkart/supertuxkart.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |