summaryrefslogtreecommitdiff
path: root/community/supertuxkart/PKGBUILD
blob: 0cbd840c72c74a88ffcee4a991adf9a0cc457f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: PKGBUILD 35517 2010-12-21 13:39:10Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: rabyte <rabyte__gmail>

pkgname=supertuxkart
pkgver=0.7
pkgrel=1
pkgdesc="A kart racing game featuring Tux and his friends"
arch=('i686' 'x86_64')
url="http://supertuxkart.sourceforge.net/"
license=('GPL2')
depends=('irrlicht' 'openal' 'libvorbis')
makedepends=()
source=(http://downloads.sourceforge.net/project/$pkgname/SuperTuxKart/0.7/$pkgname-$pkgver-src.tar.bz2)
md5sums=('2806f271e4d37fee5ad8ca166e1ad489')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure --prefix=/usr --datadir=/usr/share

  # Fix compilation failure: http://bugs.gentoo.org/283490
  #sed -i 's/-lGL/-lGL -lGLU/' config.status

  # those configure flags really mean nothing...
  sed -i "s#/usr/local#/usr#" src/io/file_manager.cpp
  sed -i "s#/games##" $(grep -Rl "/games" *)

  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install

  # fix executable location...
  install -dm755 ${pkgdir}/usr/bin
  mv ${pkgdir}/usr/supertuxkart ${pkgdir}/usr/bin/supertuxkart

  sed -i "s#usr/supertuxkart#usr/bin/supertuxkart#" \
    ${pkgdir}/usr/share/applications/supertuxkart.desktop
}

# vim:set ts=2 sw=2 et: