1 # Quick note: Nearly all of the stuff in here is from the official uqm package.
2 # The things changed is the version, the conflicts/provides, the
3 # package name and adding a menu icon.
6 # Maintainer : Daenyth <Daenyth+Arch _AT_ gmail _DOT_ com>
7 # Contributor : wizzomafizzo <wizzomafizzo@gmail.com>
8 # Contributor: tochiro@no.spam.mail.berlios.de
12 # Maintainer : Jookia <166291@gmail.com.spam>
17 pkgdesc="The Ur-Quan Masters is a port of Star Control 2"
19 url="http://sc2.sf.net/"
21 depends=('libmikmod' 'libvorbis' 'sdl_image' 'libgl')
22 makedepends=('imagemagick')
23 optdepends=('uqm-sound: For extra music and conversation audio')
26 source=(http://downloads.sourceforge.net/sourceforge/sc2/uqm-${pkgver}-source.tgz
27 http://downloads.sourceforge.net/sourceforge/sc2/uqm-0.7.0-content.uqm
28 config.state uqm uqm.desktop uqm.png)
29 md5sums=('f9018ea0493d7dac6a9e1006b00af7df' '2f36dcb15274dbbcb5e266f2ed84d5b2'
30 '07f0a0e74a0b1c706940cc43d5a4160c' '07e64632fce6323a14ab558d0214b885'
31 '771272cd2e4073db593f4dff14aea582' '57b7d8f10a05431eb7aa3d75724b43b9')
34 cd $srcdir/uqm-$pkgver
36 cp $srcdir/config.state .
37 sed -e "/INPUT_install_prefix/ s|replaceme|$pkgdir/usr|" \
40 echo | ./build.sh uqm config || return 1
42 ./build.sh uqm || return 1
43 ./build.sh uqm install
45 install -Dm644 $srcdir/uqm-0.7.0-content.uqm \
46 $pkgdir/usr/share/uqm/content/packages/uqm-0.7.0-content.uqm
48 rm $pkgdir/usr/bin/uqm
49 install -Dm755 $srcdir/uqm $pkgdir/usr/bin/uqm
51 # Desktop launcher with icon
52 install -D -m644 "${srcdir}/uqm.desktop" "${pkgdir}/usr/share/applications/uqm.desktop"
53 install -D -m644 "${srcdir}/uqm.png" "${pkgdir}/usr/share/pixmaps/uqm.png"
56 # vim:set ts=2 sw=2 et: