updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ezquake / PKGBUILD
blobf0748f4e981a3c9e20c65d35c80da0e3c3896434
1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
3 pkgname=ezquake
4 pkgver=2.1
5 pkgrel=1
6 pkgdesc="One of the most Popular QuakeWorld clients for Linux/BSD/OSX/Win32. You need the retail pak files to play."
7 url="http://ezquake.sourceforge.net/"
8 license=('GPL')
9 depends=('libgl' 'libxxf86dga')
10 makedepends=('unzip')
11 conflicts=('fuhquake')
12 provides=('quake' 'fuhquake')
13 arch=('i686' 'x86_64')
14 install=ezquake.install
15 source=("http://downloads.sourceforge.net/sourceforge/ezquake/ezquake_linux32_${pkgver}.tar.gz" \
16 'ezquake.launcher' 'ezquake.desktop' 'ezquake.ico')
17 md5sums=('e238c2c0985a96598bd26a6ee116bee3'
18          'bad99b7adc7c238f1df2fc4973c00ae6'
19          '75cfa823bf495fe4cdb755c6b5546f2a'
20          'b3fd62bf6f56f139257544cab74ba71e')
21 noextract=("ezquake_linux32_${pkgver}.tar.gz")
23 if [ $CARCH = 'x86_64' ]; then
24     source[0]="http://downloads.sourceforge.net/sourceforge/ezquake/ezquake_linux64_${pkgver}.tar.gz"
25     md5sums[0]='00dc037b8f0442ae816025ef88c06c5e'
26     noextract=("ezquake_linux64_${pkgver}.tar.gz")
29 build() {
30     cd ${srcdir}
32     # Make Destination Directories
33     install -d ${pkgdir}/opt/quake
35     # Unpack ezQuake
36     if [ $CARCH = 'x86_64' ]; then
37         bsdtar -x -o -C ${pkgdir}/opt/quake -f ${srcdir}/ezquake_linux64_${pkgver}.tar.gz
38     else
39         bsdtar -x -o -C ${pkgdir}/opt/quake -f ${srcdir}/ezquake_linux32_${pkgver}.tar.gz
40     fi
42     # Make id1 Directory for pak0.pak and pak1.pak files
43     install -d ${pkgdir}/opt/quake/id1/
45     # Make save game Directory with user group permissions
46     install -d -m775 -g users ${pkgdir}/opt/quake/qw/save/
48     # Install Icon
49     install -D -m644 ${srcdir}/ezquake.ico \
50         ${pkgdir}/usr/share/pixmaps/ezquake.ico
52     # Install Launcher
53     install -D -m755 ${srcdir}/ezquake.launcher \
54         ${pkgdir}/usr/bin/ezquake
56     # Install Desktop
57     install -D -m644 ${srcdir}/ezquake.desktop \
58         ${pkgdir}/usr/share/applications/ezquake.desktop