updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / doom3-hexen / PKGBUILD
blobeeb111540782678eac8cfe9f1bf902bbd22f903b
1 # Contributor: Artiom MOLCHANOV <ar.molchanov@gmail.com>
3 pkgname=doom3-hexen
4 pkgver=0.99
5 pkgrel=1
6 pkgdesc="heXen:Edge of Chaos based on the original Hexen game that was developed by id Software and Raven Software."
7 url="http://www.hexenmod.com"
8 license=('custom')
9 arch=('i686' 'x86_64')
10 depends=('doom3')
11 makedepends=('unzip')
12 # Download: http://www.moddb.com/downloads/start/27944
13 # or : http://www.moddb.com/mods/hexen-edge-of-chaos/downloads/hexen-edge-of-chaos-demo-release
14 source=('hexen_edge_of_chaos_demo.zip' 'doom3-hexen.desktop' 'doom3-hexen.launcher')
15 _src='eoc'
16 md5sums=('a7c51694a2c3bf58840b9e40bb36eb4e'
17          '47fb704d97ff7a84b50ffb930bc3c127'
18          '6a8eebe5e5b86e5cac64438dfdc62e64')
19           
20 build() {
21     cd $srcdir
22     find . -type f -exec chmod -x {} \;
23     # Create Destination Directories
24     install -d $startdir/pkg/{usr/bin/,opt/doom3/}
26     # Remove Unneeded Files
27     rm $srcdir/$_src/*.bat
29     # Move Icon
30     mv $srcdir/$_src/Hexen_Icon.ico $srcdir/doom3-hexen.ico
32     # Move License
33     mv $srcdir/$_src/LICENSE.TXT $startdir/src/License.txt
35     # Move Data to Destination Directory
36     mv $srcdir/$_src $startdir/pkg/opt/doom3/
38     # Install Launcher (Client)
39     install -D -m 755 $startdir/src/doom3-hexen.launcher \
40         $startdir/pkg/usr/bin/doom3-hexen
42     # Install License
43     install -D -m 644 $startdir/src/License.txt \
44         $startdir/pkg/usr/share/licenses/$pkgname/License.txt
46     # Install Icon
47     install -D -m 644 $startdir/src/doom3-hexen.ico \
48         $startdir/pkg/usr/share/pixmaps/doom3-hexen.ico
50     # Install Desktop File
51     install -D -m 644 $startdir/src/doom3-hexen.desktop \
52         $startdir/pkg/usr/share/applications/doom3-hexen.desktop