updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / fuhquake / PKGBUILD
blobff6fc20632a57e73b32fd57ee0ecf802866fc04e
1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
3 pkgname=fuhquake
4 pkgver=0.31                                  
5 pkgrel=4
6 pkgdesc="A QuakeWorld Client for Win32/Linux. You need the retail pak files to play."
7 url="http://www.fuhquake.net/"
8 license="GPL"
9 depends=('libgl')
10 makedepends=('unzip')
11 conflicts=('ezquake')
12 provides=()
13 install=fuhquake.install
14 source=('fuhquake.launcher' 'fuhquake.install' 'fuhquake.desktop' 'fuhquake.ico' \
15 "http://www.slashbunny.com/quake/$pkgname-linux-v$pkgver.zip")
16 md5sums=('c471e673a64882e3653fd953b1a3da1f' '8ea170b09fe50223bb66bf93a3f160b0'\
17          'e64a0918e48595f4a8fb47d0e39b8c84' '6a0f7982f82886210448490be5762ab0'\
18          'd4476cc49db638e5304ddd6cd744b62a')
20 build() {
21         cd $startdir/src
23         # Unpack fuhQuake
24         unzip $pkgname-linux-v$pkgver.zip -d quake/
26         # Make binaries executable
27         chmod +x quake/fuhquake-gl.glx
28         chmod +x quake/fuhquake.svga
29         chmod +x quake/fuhquake.x11
31         # Move data to package directory
32         install -d $startdir/pkg/opt/
33         mv quake/ $startdir/pkg/opt/
35         # Make id1 Directory for pak0.pak and pak1.pak files
36         install -d $startdir/pkg/opt/quake/id1/
38         # Install Launcher
39         install -D -m755 $startdir/src/fuhquake.launcher \
40                 $startdir/pkg/usr/bin/fuhquake
42         # Install Desktop
43         install -D -m644 $startdir/src/fuhquake.desktop \
44                 $startdir/pkg/usr/share/applications/fuhquake.desktop
46         # Install Icon
47         install -D -m644 $startdir/src/fuhquake.ico \
48                 $startdir/pkg/usr/share/pixmaps/fuhquake.ico
50         # Make Configs directory with permissions root:games so users can save configs
51         install -d -m 775 -o root -g 20 $startdir/pkg/opt/quake/fuhquake/configs/
52