updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / legends / PKGBUILD
blob30ed5240b20c57152692ec0f714207de4700dfaf
1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
3 pkgname=legends
4 pkgver=0.4.1.43
5 pkgrel=1
6 pkgdesc="Mulitplayer team-based first person shooter game, similar to Tribes"
7 url="http://www.legendsthegame.net"
8 license=('custom:Legends Freeware Software License')
9 arch=('i686' 'x86_64')
10 depends=('libxext' 'libogg' 'sdl' 'sdl_image' 'sdl_mixer' 'libpng' 'libjpeg' 'zlib' 'rsync')
11 install=
12 source=('legends.launcher' 'legends.desktop' \
13 "http://run.legendsthegame.net/legends_linux-${pkgver}.run")
14 md5sums=('bb76660c04c94690c3817c4821ff3b24'
15          '4cd83521478cb4802ef3cd2ee72fc37f'
16          '5188d8aad55b8aa71e10e414ba12ee6b')
18 build ()
20     cd $srcdir
22     # Create Destination Directory
23     install -d $pkgdir/opt/
25     # Unpack Files from Installer into src/legends/
26     chmod +x $srcdir/legends_linux-${pkgver}.run
27     ./legends_linux-${pkgver}.run --noexec --target $srcdir/legends/
29     # Remove Junk from Game Directory
30     rm $srcdir/legends/OPENAL32.DLL
32     # Move Game Directory to Package Directory
33     cp -r $srcdir/legends/ $pkgdir/opt/
35     # Install Launcher
36     install -D -m 755 $srcdir/legends.launcher \
37         $pkgdir/usr/bin/legends
39     # Install Desktop File
40     install -D -m 644 $srcdir/legends.desktop \
41         $pkgdir/usr/share/applications/legends.desktop
43     # Install Icon File
44     install -D -m 644 $pkgdir/opt/legends/legends.ico \
45         $pkgdir/usr/share/pixmaps/legends.ico