updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / et-sdl-sound-fixed / PKGBUILD
blobe10a1c8857c9085d38250665616ec29cbbb4a7d4
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Georgij Kondratjev <smpuj@bk.ru>
3 # Contributor: Alec Hussey <alec.hussey@madsoft.org>
5 pkgname=et-sdl-sound-fixed
6 pkgver=29
7 pkgrel=3
8 pkgdesc="Replacement for standard OSS sound system of Wolfenstein, Enemy Territory and Quake 3"
9 arch=('i686' 'x86_64')
10 url="http://nullkey.kapsi.fi/et-sdl-sound/"
11 license=('GPL')
12 depends=('sdl')
13 [[ "$CARCH" == "x86_64" ]] && depends=('lib32-sdl' 'lib32-alsa-lib') \
14     && optdepend=('lib32-pulseaudio' 'lib32-jack-audio-connection-kit' 'lib32-alsa-plugins')
15 source=(http://nullkey.kapsi.fi/et-sdl-sound/archive/et-sdl-sound-r$pkgver.tar.gz
16         x86_64.patch
17         enemy-territory.sh true-combat.sh quake3.sh wolf.launcher wolfsp.launcher wolfmp.launcher)
18 md5sums=('77c2433fc757e5ffb08ec2c78a9853b3'
19          'f0fd5ca54659a9a5774617253245d766'
20          'a1c020a48ad18893054dbfe86b31d665'
21          '56205aceaba40ecc0ab9faaad71cc9d8'
22          '8d8c983f8eb33b46609821ad972d6ae0'
23          'c9419ed21e27fc53bbb132ba82aa5120'
24          '4236efdcb7275554dfe59ea0a533a2ff'
25          'c9419ed21e27fc53bbb132ba82aa5120')
27 build() {
28     cd $srcdir/et-sdl-sound
30     if [ "$CARCH" = "x86_64" ]; then
31         sed -i 's:ioquake3.i386:ioquake3.x86_64:' ../quake3.sh 
32         # install 32bit lib
33         install -Dm 755 et-sdl-sound.so $pkgdir/opt/lib32/usr/lib/et-sdl-sound.so 
34     fi
36     patch -Np1 -i ../x86_64.patch || return 1
37     make || return 1
39     install -Dm 755 et-sdl-sound.so $pkgdir/usr/lib/et-sdl-sound.so
40     install -Dm 755 ../enemy-territory.sh $pkgdir/usr/bin/enemy-territory.sdl
41     install -Dm 755 ../true-combat.sh $pkgdir/usr/bin/true-combat.sdl
42     install -Dm 755 ../quake3.sh $pkgdir/usr/bin/quake3.sdl
43     install -Dm 755 ../wolf.launcher $pkgdir/usr/bin/wolf.sdl
44     install -Dm 755 ../wolfsp.launcher $pkgdir/usr/bin/wolfsp.sdl
45     install -Dm 755 ../wolfmp.launcher $pkgdir/usr/bin/wolfmp.sdl