Advertisement
Guest User

et-sdl-sound-260b-hardcode PKGBUILD

a guest
Feb 9th, 2013
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.31 KB | None | 0 0
  1. # Maintainer: Doug Elkin <drelkin86@gmail.com>
  2.  
  3. pkgname=et-sdl-sound-260b-hardcode
  4. pkgver=20130209
  5. pkgrel=1
  6. pkgdesc="Replacement for standard OSS sound system of Enemy Territory. Rather than fixing the underlying problems with the et-sdl-sound package, this is hard-coded to get sound working on Enemy Territory 2.60b on x86_64 systems."
  7. arch=('x86_64')
  8. url="http://nullkey.kapsi.fi/et-sdl-sound/"
  9. license=('GPL')
  10. depends=('enemy-territory' 'lib32-sdl' 'lib32-alsa-lib')
  11. optdepends=('lib32-pulseaudio: for pulseaudio support'
  12.             'lib32-libpulse: for pulseaudio support'
  13.             'lib32-alsa-plugins')
  14. makedepends=('git' 'patch' 'gcc-multilib')
  15. _gitroot=git://github.com/nullkey/et-sdl-sound.git
  16. _gitname=et-sdl-sound
  17.  
  18. source=("260b-hardcode.patch")
  19. md5sums=("3f1e928012d95d39eb116b1e5e74a977")
  20.  
  21. build() {
  22.     cd "$srcdir"
  23.     msg "Connecting to GIT server..."
  24.  
  25.     if [[ -d "$_gitname" ]]; then
  26.         rm -rf "$_gitname"
  27.     fi
  28.     git clone "$_gitroot" "$_gitname"
  29.  
  30.     msg "GIT checkout done or server timeout"
  31.     msg "Patching files..."
  32.  
  33.     cp "$srcdir/260b-hardcode.patch" "$srcdir/et-sdl-sound/"
  34.     cd "$srcdir/et-sdl-sound"
  35.     patch < "260b-hardcode.patch"
  36.  
  37.     msg "Starting build..."
  38.     make
  39.  
  40.     install -Dm 755 $srcdir/et-sdl-sound/et-sdl-sound $pkgdir/usr/bin/et-260b.sdl
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement