updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / ultimatestunts / PKGBUILD
blob1efef055c4d918a8cf7f4d7e1aad7148fe541155
1 # Maintainer: Fabian Melters <melters [at] gmail [dot] com>
3 pkgname=ultimatestunts
4 pkgver=0.7.6.1
5 pkgrel=1
6 pkgdesc="UltimateStunts will be a remake of the famous DOS-game 'stunts'."
7 arch=('i686' 'x86_64')
8 url="http://www.ultimatestunts.nl"
9 license=('GPL')
10 depends=('openal' 'sdl' 'sdl_image' 'freealut' 'libvorbis')
11 source=(http://downloads.sourceforge.net/sourceforge/ultimatestunts/$pkgname-srcdata-${pkgver//./}.tar.gz)
12 md5sums=('117745dd282f9904c2d641d7f19714f7')
14 build() {
15   cd ${srcdir}/${pkgname}-srcdata-${pkgver//./}
16   sed -e "s/datadir = \/usr\/local\/share\/ultimatestunts\//datadir = \/usr\/share\/ultimatestunts\//" ultimatestunts.conf > ultimatestunts.conf.new
17   mv ultimatestunts.conf.new ultimatestunts.conf
18   ./configure --prefix=/usr --sysconfdir=/etc
19   make || return 1
20   make sysconfdir=${pkgdir}/etc prefix=${pkgdir}/usr install
21   mkdir -p ${pkgdir}/usr/share/applications
22   touch ${pkgdir}/usr/share/applications/ultimatestunts.desktop
24   echo '[Desktop Entry]
25         Name=Ultimate Stunts
26         Comment=UltimateStunts will be a remake of the famous DOS-game 'stunts'.
27         Exec=ustunts
28         Icon=/usr/share/pixmaps/ultimatestunts.png
29         Terminal=false
30         Type=Application
31         Categories=Application;Game
32         StartupNotify=false
33         Encoding=UTF-8' >> ${pkgdir}/usr/share/applications/ultimatestunts.desktop  
35