
ultimatestunts PKGBUILD
By: a guest on
Aug 21st, 2012 | syntax:
Bash | size: 1.52 KB | hits: 17 | expires: Never
# Maintainer: Fabian Melters <melters [at] gmail [dot] com>
pkgname=ultimatestunts
pkgver=0.7.6.1
pkgrel=1
pkgdesc="UltimateStunts will be a remake of the famous DOS-game 'stunts'."
arch=('i686' 'x86_64')
url="http://www.ultimatestunts.nl"
license=('GPL')
depends=('openal' 'sdl' 'sdl_image' 'freealut' 'libvorbis')
source=(http://downloads.sourceforge.net/sourceforge/ultimatestunts/$pkgname-srcdata-${pkgver//./}.tar.gz)
md5sums=('117745dd282f9904c2d641d7f19714f7')
build() {
cd ${srcdir}/${pkgname}-srcdata-${pkgver//./}
sed -e "s/datadir = \/usr\/local\/share\/ultimatestunts\//datadir = \/usr\/share\/ultimatestunts\//" ultimatestunts.conf > ultimatestunts.conf.new
mv ultimatestunts.conf.new ultimatestunts.conf
./configure --prefix=/usr --sysconfdir=/etc
echo "Downloading patch..."
wget http://pastebin.com/download.php?i=0widjDKC -O metaserver.patch
echo -en "\n" >> metaserver.patch
echo "Patching file..."
patch -p2 -i metaserver.patch
echo "done"
make || return 1
make sysconfdir=${pkgdir}/etc prefix=${pkgdir}/usr install
mkdir -p ${pkgdir}/usr/share/applications
touch ${pkgdir}/usr/share/applications/ultimatestunts.desktop
echo '[Desktop Entry]
Name=Ultimate Stunts
Comment=UltimateStunts will be a remake of the famous DOS-game 'stunts'.
Exec=ustunts
Icon=/usr/share/pixmaps/ultimatestunts.png
Terminal=false
Type=Application
Categories=Application;Game
StartupNotify=false
Encoding=UTF-8' >> ${pkgdir}/usr/share/applications/ultimatestunts.desktop
}