Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

et-sdl-sound (FIXED)

By: a guest on Nov 26th, 2012  |  syntax: Bash  |  size: 2.26 KB  |  hits: 147  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Alec Hussey <alec.hussey@madsoft.org>
  2. # Contributor: Arkham <arkham at archlinux dot us>
  3. # Contributor: Georgij Kondratjev <smpuj@bk.ru>
  4.  
  5. pkgname=et-sdl-sound
  6. pkgver=29
  7. pkgrel=6
  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. optdepends=('pulseaudio: for pulseaudio support'
  14.             'libpulse: for pulseaudio support')
  15.  
  16. # 64-bit dependencies and optional dependencies
  17. if [ "$CARCH" == "x86_64" ]; then
  18.         depends=('lib32-sdl' 'lib32-alsa-lib')
  19.     optdepends=('lib32-pulseaudio: for pulseaudio support'
  20.                 'lib32-libpulse: for pulseaudio support'
  21.                 'lib32-alsa-plugins')
  22. fi
  23.  
  24. source=("http://nullkey.kapsi.fi/et-sdl-sound/archive/et-sdl-sound-r$pkgver.tar.gz"
  25.         "x86_64.patch"
  26.         "enemy-territory.sh"
  27.         "true-combat.sh"
  28.         "quake3.sh"
  29.         "wolf.launcher"
  30.         "wolfsp.launcher"
  31.         "wolfmp.launcher")
  32. md5sums=('77c2433fc757e5ffb08ec2c78a9853b3'
  33.          'f0fd5ca54659a9a5774617253245d766'
  34.          'a1c020a48ad18893054dbfe86b31d665'
  35.          '56205aceaba40ecc0ab9faaad71cc9d8'
  36.          '8d8c983f8eb33b46609821ad972d6ae0'
  37.          'c9419ed21e27fc53bbb132ba82aa5120'
  38.          '4236efdcb7275554dfe59ea0a533a2ff'
  39.          'c9419ed21e27fc53bbb132ba82aa5120')
  40.  
  41. build() {
  42.     cd $srcdir/et-sdl-sound
  43.  
  44.     if [ "$CARCH" = "x86_64" ]; then
  45.         sed -i 's:ioquake3.i386:ioquake3.x86_64:' ../quake3.sh
  46.         # install 32bit lib
  47.         install -Dm 755 et-sdl-sound.so $pkgdir/opt/lib32/usr/lib/et-sdl-sound.so
  48.     fi
  49.  
  50.     patch -Np1 -i ../x86_64.patch || return 1
  51.     sed -i 's/\(#include "hooks.hpp"\)/\1\n#include <unistd.h>/g' hooks.cpp
  52.     make || return 1
  53.  
  54.     install -Dm 755 et-sdl-sound.so $pkgdir/usr/lib/et-sdl-sound.so
  55.     install -Dm 755 ../enemy-territory.sh $pkgdir/usr/bin/enemy-territory.sdl
  56.     install -Dm 755 ../true-combat.sh $pkgdir/usr/bin/true-combat.sdl
  57.     install -Dm 755 ../quake3.sh $pkgdir/usr/bin/quake3.sdl
  58.     install -Dm 755 ../wolf.launcher $pkgdir/usr/bin/wolf.sdl
  59.     install -Dm 755 ../wolfsp.launcher $pkgdir/usr/bin/wolfsp.sdl
  60.     install -Dm 755 ../wolfmp.launcher $pkgdir/usr/bin/wolfmp.sdl
  61. }