git » uqm.git » commit 6278227

Update to v0.7.0, add desktop file and icon stolen from fedora

author Laurent Carlier
2011-08-31 20:20:55 UTC
committer Laurent Carlier
2011-08-31 20:20:55 UTC
parent 19bb6fcff6b27e538e9c12175af68a70319425f3

Update to v0.7.0, add desktop file and icon stolen from fedora

PKGBUILD +33 -15
uqm.desktop +10 -0
uqm.png +0 -0

diff --git a/PKGBUILD b/PKGBUILD
index e4991fb..4d82315 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,59 @@
+# Maintainer : Laurent Carlier <lordheavym@gmail.com>
 # 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
+pkgver=0.7.0
+pkgrel=1
 pkgdesc="The Ur-Quan Masters is a port of Star Control 2"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://sc2.sf.net/"
 license=('GPL')
 depends=('libmikmod' 'libvorbis' 'sdl_image' 'libgl')
-makedepends=('imagemagick')
+makedepends=('imagemagick' 'mesa' 'namcap')
 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')
+        http://downloads.sourceforge.net/sourceforge/sc2/uqm-${pkgver}-content.uqm
+        config.state
+        uqm
+        uqm.desktop
+        uqm.png)
+noextract=(uqm-${pkgver}-content.uqm)
+md5sums=('f9018ea0493d7dac6a9e1006b00af7df'
+         '2f36dcb15274dbbcb5e266f2ed84d5b2'
+         '07f0a0e74a0b1c706940cc43d5a4160c'
+         '07e64632fce6323a14ab558d0214b885'
+         '44c83b9b9d102b99210af0036749a318'
+         '06d0a72aa18e7edce6cd3c7a3a747c44')
 
 build() {
-  cd $srcdir/$pkgname-$pkgver/sc2
+  cd $srcdir/$pkgname-$pkgver
   
   cp $srcdir/config.state .
   sed -e "/INPUT_install_prefix/ s|replaceme|$pkgdir/usr|" \
       -i config.state
 
-  echo | ./build.sh uqm config || return 1
+  echo | ./build.sh uqm config
+
+  ./build.sh uqm
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
 
-  ./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
+  install -Dm644 $srcdir/$pkgname-$pkgver-content.uqm \
+     $pkgdir/usr/share/uqm/content/packages/$pkgname-$pkgver-content.uqm
+
+  # stolen from fedora!
+  install -Dm644 $srcdir/uqm.desktop \
+     $pkgdir/usr/share/applications/uqm.desktop
+  install -Dm644 $srcdir/uqm.png \
+     $pkgdir/usr/share/pixmaps/uqm.png
 
   rm $pkgdir/usr/bin/uqm
   install -Dm755 $srcdir/uqm $pkgdir/usr/bin/uqm
 }
-
-# vim:set ts=2 sw=2 et:
diff --git a/uqm.desktop b/uqm.desktop
new file mode 100644
index 0000000..7a0e468
--- /dev/null
+++ b/uqm.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=The Ur-Quan Masters
+Comment=An epic space adventure
+Comment[fi]=Eeppinen avaruusseikkailu
+Exec=uqm
+Icon=uqm
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Categories=Application;Game;ArcadeGame;StrategyGame;
diff --git a/uqm.png b/uqm.png
new file mode 100644
index 0000000..64765a4
Binary files /dev/null and b/uqm.png differ