summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2015-10-24 12:56:46 +0200
committerAlexander F Rødseth2015-10-24 12:56:46 +0200
commit62dfd875bc490b8ff796dfe5a1361810326759e0 (patch)
tree902ecb7316d6d0e65c87f44d9ae26e8f81055996
parent6003b583027a171fd6b2ae6deeab9f42a036cb28 (diff)
downloadaur-62dfd875bc490b8ff796dfe5a1361810326759e0.tar.gz
Desktop shortcut for the editor. Pulseaudio sound.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD45
2 files changed, 32 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f5ab5f8ffdb..b76da6387c0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Sat Oct 24 10:56:42 UTC 2015
pkgbase = maniadrive
pkgdesc = Acrobatic racing game
pkgver = 1.2
- pkgrel = 18
+ pkgrel = 19
url = http://maniadrive.raydium.org/
arch = x86_64
arch = i686
@@ -11,6 +13,8 @@ pkgbase = maniadrive
depends = libgl
depends = alsa-lib
depends = mesa
+ depends = glu
+ depends = libpulse
source = http://prdownloads.sourceforge.net/maniadrive/ManiaDrive-1.2-linux-i386.tar.gz
source = maniadrive.png::http://framakey.org/uploads/Portables/PortableManiaDrive_128px.png
source = license.txt
diff --git a/PKGBUILD b/PKGBUILD
index 444b18fc3f3..79eb917354f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,19 @@
-# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: Darwin Bautista <djclue917@gmail.com>
pkgname=maniadrive
pkgver=1.2
-pkgrel=18
+pkgrel=19
pkgdesc='Acrobatic racing game'
arch=('x86_64' 'i686')
url='http://maniadrive.raydium.org/'
license=('GPL' 'custom:CC by-sa 2.0')
if [ "$CARCH" = "x86_64" ]
then
- depends=('lib32-libgl' 'lib32-alsa-lib' 'lib32-mesa')
+ depends=('lib32-libgl' 'lib32-alsa-lib' 'lib32-mesa' 'lib32-glu' 'lib32-libpulse')
else
- depends=('libgl' 'alsa-lib' 'mesa')
+ depends=('libgl' 'alsa-lib' 'mesa' 'glu' 'libpulse')
fi
makedepends=('gendesk')
source=("http://prdownloads.sourceforge.net/maniadrive/ManiaDrive-$pkgver-linux-i386.tar.gz"
@@ -24,48 +24,57 @@ sha256sums=('ea524a4613139290b0f85fb6a1a8206d398cba27a2bddb4173ad60b399cbcae4'
'60e4d9d0dd67ddf5ee4d0e60219e29f6824b6e0ec1232194110f696b46936f19')
prepare() {
- cd "$srcdir"
+ gendesk -f --pkgname "Maniadrive" --pkgdesc "$pkgdesc" --exec maniadrive
- gendesk --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+ gendesk -f --pkgname "Maniadrive Editor" --pkgdesc "Level Editor" \
+ --exec maniadrive_editor
cd "ManiaDrive-$pkgver-linux-i386"
echo '#!/bin/sh' > maniadrive
- echo '/opt/maniadrive/mania_drive.static "$@"' >> maniadrive
+ echo 'padsp /opt/maniadrive/mania_drive.static "$@"' >> maniadrive
echo '#!/bin/sh' > maniadrive_editor
- echo '/opt/maniadrive/mania2.static "$@"' >> maniadrive_editor
+ echo 'padsp /opt/maniadrive/mania2.static "$@"' >> maniadrive_editor
echo '#!/bin/sh' > maniadrive_server
echo '/opt/maniadrive/mania_server.static "$@"' >> maniadrive_server
}
package() {
- cd "$srcdir/ManiaDrive-$pkgver-linux-i386"
-
- mkdir "$pkgdir/opt"
+ cd "ManiaDrive-$pkgver-linux-i386"
+
+ install -d "$pkgdir/opt"
cp -r game "$pkgdir/opt"
mv "$pkgdir/opt/game" "$pkgdir/opt/$pkgname"
-
+
install -Dm755 maniadrive \
"$pkgdir/usr/bin/maniadrive"
install -Dm755 maniadrive_editor \
"$pkgdir/usr/bin/maniadrive_editor"
install -Dm755 maniadrive_server \
"$pkgdir/usr/bin/maniadrive_server"
-
+
# GPL
install -Dm644 COPYING \
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
# Creative commons
cd $srcdir
install -Dm644 license.txt \
"$pkgdir/usr/share/licenses/$pkgname/license.txt"
-
- install -D -m644 "$pkgname.desktop" \
- "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -D -m644 "$pkgname.png" \
- "$pkgdir/usr/share/pixmaps/$pkgname.png"
+
+ # Desktop shortcuts
+
+ install -Dm644 Maniadrive.desktop \
+ "$pkgdir/usr/share/applications/Maniadrive.desktop"
+ install -Dm644 maniadrive.png \
+ "$pkgdir/usr/share/pixmaps/Maniadrive.png"
+
+ install -Dm644 'Maniadrive Editor.desktop' \
+ "$pkgdir/usr/share/applications/Maniadrive Editor.desktop"
+ install -Dm644 maniadrive.png \
+ "$pkgdir/usr/share/pixmaps/Maniadrive Editor.png"
}
# vim:set ts=2 sw=2 et: