updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / maniadrive / PKGBUILD
blob70131698ca5d94d00b7d5f58b0673b44350cf795
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
3 # Contributor: Darwin Bautista <djclue917@gmail.com>
4 pkgname=maniadrive
5 pkgver=1.2
6 pkgrel=15
7 pkgdesc="An acrobatic racing game"
8 arch=('x86_64' 'i686')
9 url="http://maniadrive.raydium.org/"
10 license=('GPL' 'custom:CC by-sa 2.0')
11 if [ "$CARCH" = "x86_64" ]
12 then
13   depends=('lib32-libgl' 'lib32-alsa-lib' 'lib32-mesa')
14 else
15   depends=('libgl' 'alsa-lib' 'mesa')
17 source=("http://prdownloads.sourceforge.net/maniadrive/ManiaDrive-$pkgver-linux-i386.tar.gz"
18         "maniadrive.desktop"
19         "license.txt"
20         "https://admin.fedoraproject.org/pkgdb/appicon/show/Maniadrive")
21 md5sums=('5592eaf4b8c4012edcd4f0fc6e54c09c'
22          '064639f1b48ec61e46c524ae31eec520'
23          'afa5fac56d01430e904dd6716d84f4bf'
24          '9b5fc9d981d460a7b0c9d78e75c5aeca')
26 build() {
27   cd "$srcdir/ManiaDrive-$pkgver-linux-i386"
28   
29   msg2 "Packaging game..."
30   mkdir "$pkgdir/opt"
31   cp -r game "$pkgdir/opt"
32   mv "$pkgdir/opt/game" "$pkgdir/opt/$pkgname"
33   
34   msg2 "Making wrapperscripts..."
35   
36   echo '#!/bin/sh' > maniadrive
37   echo '/opt/maniadrive/mania_drive.static "$@"' >> maniadrive
38   install -Dm755 maniadrive \
39     "$pkgdir/usr/bin/maniadrive"
40   
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"
45   
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"
50   
51   msg2 "Packaging licenses..."
52   # GPL
53   install -Dm644 COPYING \
54     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
55   # Creative commons
56   cd $srcdir
57   install -Dm644 license.txt \
58     "$pkgdir/usr/share/licenses/$pkgname/license.txt"
59   
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: