summaryrefslogtreecommitdiff
path: root/community/uqm
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/uqm
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/uqm')
-rw-r--r--community/uqm/PKGBUILD41
-rw-r--r--community/uqm/config.state13
-rw-r--r--community/uqm/uqm2
3 files changed, 56 insertions, 0 deletions
diff --git a/community/uqm/PKGBUILD b/community/uqm/PKGBUILD
new file mode 100644
index 000000000..e4991fbe8
--- /dev/null
+++ b/community/uqm/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer : Daenyth <Daenyth+Arch _AT_ gmail _DOT_ com>
+# Contributor : wizzomafizzo <wizzomafizzo@gmail.com>
+# Contributor: tochiro@no.spam.mail.berlios.de
+# Contributor: sh__
+
+pkgname=uqm
+pkgver=0.6.2
+pkgrel=5
+pkgdesc="The Ur-Quan Masters is a port of Star Control 2"
+arch=(i686 x86_64)
+url="http://sc2.sf.net/"
+license=('GPL')
+depends=('libmikmod' 'libvorbis' 'sdl_image' 'libgl')
+makedepends=('imagemagick')
+optdepends=('uqm-sound: For extra music and conversation audio')
+source=(http://downloads.sourceforge.net/sourceforge/sc2/uqm-${pkgver}-source.tgz
+ http://downloads.sourceforge.net/sourceforge/sc2/uqm-0.6.0-content.uqm
+ config.state uqm)
+md5sums=('ba4ee595b62349873d510b9827e7648d' '7e8f0ed8490e24231431420ea2ba6a03'
+ '07f0a0e74a0b1c706940cc43d5a4160c' '07e64632fce6323a14ab558d0214b885')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver/sc2
+
+ cp $srcdir/config.state .
+ sed -e "/INPUT_install_prefix/ s|replaceme|$pkgdir/usr|" \
+ -i config.state
+
+ echo | ./build.sh uqm config || return 1
+
+ ./build.sh uqm || return 1
+ ./build.sh uqm install
+
+ install -Dm644 $srcdir/$pkgname-0.6.0-content.uqm \
+ $pkgdir/usr/share/uqm/content/packages/$pkgname-0.6.0-content.uqm
+
+ rm $pkgdir/usr/bin/uqm
+ install -Dm755 $srcdir/uqm $pkgdir/usr/bin/uqm
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/uqm/config.state b/community/uqm/config.state
new file mode 100644
index 000000000..1568f4a24
--- /dev/null
+++ b/community/uqm/config.state
@@ -0,0 +1,13 @@
+CHOICE_debug_VALUE='nodebug'
+CHOICE_graphics_VALUE='opengl'
+CHOICE_sound_VALUE='mixsdl'
+CHOICE_mikmod_VALUE='external'
+CHOICE_ovcodec_VALUE='standard'
+CHOICE_netplay_VALUE='full'
+CHOICE_joystick_VALUE='enabled'
+CHOICE_ioformat_VALUE='stdio_zip'
+CHOICE_accel_VALUE='asm'
+INPUT_install_prefix_VALUE='replaceme'
+INPUT_install_bindir_VALUE='$prefix/bin'
+INPUT_install_libdir_VALUE='$prefix/lib'
+INPUT_install_sharedir_VALUE='$prefix/share'
diff --git a/community/uqm/uqm b/community/uqm/uqm
new file mode 100644
index 000000000..893092074
--- /dev/null
+++ b/community/uqm/uqm
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "/usr/lib/uqm/uqm" "--contentdir=/usr/share/uqm/content" "$@"