1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
3 # Contributor: Darwin Bautista <djclue917@gmail.com>
7 pkgdesc="An acrobatic racing game"
9 url="http://maniadrive.raydium.org/"
10 license=('GPL' 'custom:CC by-sa 2.0')
11 if [ "$CARCH" = "x86_64" ]
13 depends=('lib32-libgl' 'lib32-alsa-lib' 'lib32-mesa')
15 depends=('libgl' 'alsa-lib' 'mesa')
17 source=("http://prdownloads.sourceforge.net/maniadrive/ManiaDrive-$pkgver-linux-i386.tar.gz"
20 "https://admin.fedoraproject.org/pkgdb/appicon/show/Maniadrive")
21 md5sums=('5592eaf4b8c4012edcd4f0fc6e54c09c'
22 '064639f1b48ec61e46c524ae31eec520'
23 'afa5fac56d01430e904dd6716d84f4bf'
24 '9b5fc9d981d460a7b0c9d78e75c5aeca')
27 cd "$srcdir/ManiaDrive-$pkgver-linux-i386"
29 msg2 "Packaging game..."
31 cp -r game "$pkgdir/opt"
32 mv "$pkgdir/opt/game" "$pkgdir/opt/$pkgname"
34 msg2 "Making wrapperscripts..."
36 echo '#!/bin/sh' > maniadrive
37 echo '/opt/maniadrive/mania_drive.static "$@"' >> maniadrive
38 install -Dm755 maniadrive \
39 "$pkgdir/usr/bin/maniadrive"
41 echo '#!/bin/sh' > maniadrive_editor
42 echo '/opt/maniadrive/mania2.static "$@"' >> maniadrive_editor
43 install -Dm755 maniadrive_editor \
44 "$pkgdir/usr/bin/maniadrive_editor"
46 echo '#!/bin/sh' > maniadrive_server
47 echo '/opt/maniadrive/mania_server.static "$@"' >> maniadrive_server
48 install -Dm755 maniadrive_server \
49 "$pkgdir/usr/bin/maniadrive_server"
51 msg2 "Packaging licenses..."
53 install -Dm644 COPYING \
54 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
57 install -Dm644 license.txt \
58 "$pkgdir/usr/share/licenses/$pkgname/license.txt"
60 msg2 "Packaging menu entry and icon..."
61 install -D -m644 "$pkgname.desktop" \
62 "$pkgdir/usr/share/applications/$pkgname.desktop"
63 install -D -m644 "Maniadrive" \
64 "$pkgdir/usr/share/pixmaps/$pkgname.png"
66 # vim:set ts=2 sw=2 et: