Advertisement
Guest User

phobia3 PKGBUILD

a guest
Apr 28th, 2010
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.11 KB | None | 0 0
  1. # Contributor: Artificial Intelligence <polarbeard@gmail.com>
  2.  
  3. pkgname=phobia3
  4. pkgver=1.1
  5. pkgrel=3
  6. pkgdesc="Shoot through a tons of bug, blood and guts all over the place. PhobiaIII is a fast paced Third Person Shooter."
  7. arch=('i686' 'x86_64')
  8. url='http://www.redlynx.com/phobiaIII/index.html'
  9. license=('custom: "freeware"')
  10. if [ "$CARCH" = "x86_64" ]; then
  11.         depends=('lib32-libxext' 'lib32-libvorbis' 'lib32-sdl' 'lib32-sdl_mixer' 'lib32-libart-lgpl' 'lib32-libstdc++5' 'lib32-esound' 'lib32-smpeg')
  12. else  
  13.         depends=('libxext' 'libvorbis' 'sdl' 'sdl_mixer' 'libart-lgpl' 'libstdc++5' 'esound' 'smpeg')
  14. fi          
  15. source=("http://www.redlynx.com/phobiaIII/download/phobia3-linux.tar.bz2"
  16.         "http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-24_i386.deb"
  17.         "Phobia3.png"
  18.         "phobia3.desktop"
  19.         "phobia3.launcher")
  20. md5sums=('d184426f643e3b2af9851ae9d5a6351c'
  21.          'b2da87d562dc2078c8244e980a4722b4'
  22.          '8ec7d56dbb4f006b906e96725fe9e89c'
  23.          'b325bd63b18550732c45cfe98b0d217c'
  24.          'e2ee119c281b506a8285d78d0605713d')
  25. sha256sums=('9064ea67c6a0fc678b2baefd22e713b0b047dc4669c8b4444c05c91532f5d8ae'
  26.             '4491a1b211724abc12197992198770c2460e7bb7c1c68888c18e34f546218885'
  27.             '36cec1652542a350735b5ec2bd98c232a4af0ec0b920e0358dc7f6fb9d778164'
  28.             'c97a124491d2b4165e12a8647a1463831e5e25a9758d55e88c789cca27da8d92'
  29.             'e959468727dffc64f6cf94b338be3166d2f8f8912c3869ef52835ab73e88eee2')
  30.  
  31. build() {
  32.     cd ${srcdir}
  33.  
  34.     # Symblink of libs into Phobia3
  35.     mkdir -p ${pkgdir}/opt/PhobiaIII/lib && cd ${pkgdir}/opt/PhobiaIII/lib || return 1
  36.     if [ "$CARCH" = "x86_64" ]; then
  37.             ln -s /opt/lib32/usr/lib/libart_lgpl_2.so ./libartsc.so.0 || return 1
  38.             ln -s /opt/lib32/usr/lib/libvorbisfile.so ./libvorbisfile.so.0 || return 1
  39.  
  40.     else
  41.             ln -s /usr/lib/libart_lgpl_2.so ./libartsc.so.0 || return 1
  42.             ln -s /usr/lib/libvorbisfile.so ./libvorbisfile.so.0 || return 1
  43.  
  44.     fi
  45.  
  46.     cd ${srcdir}
  47.  
  48.     # Installing an old forgotten lib to Phobia3 lib folder. Only found .deb of this lib.
  49.     bsdtar -xvf libstdc++2.10-glibc2.2_2.95.4-24_i386.deb || return 1
  50.     bsdtar -xvf data.tar.gz || return 1
  51.     install -m 0644 ${srcdir}/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so ${pkgdir}/opt/PhobiaIII/lib/libstdc++-libc6.2-2.so.3 || return 1
  52.  
  53.     # Install the data
  54.     rm -rf ${srcdir}/phobia3/src
  55.     cp -r ${srcdir}/phobia3/* ${pkgdir}/opt/PhobiaIII || return 1
  56.     # set right perms
  57.     find ${pkgdir}/opt/PhobiaIII -type f -exec chmod 644 '{}' \;
  58.     find ${pkgdir}/opt/PhobiaIII -type d -exec chmod 755 '{}' \;
  59.     chmod 755 ${pkgdir}/opt/PhobiaIII/phobia3
  60.  
  61.     # Install Icon
  62.     install -D -m 644 ${srcdir}/Phobia3.png \
  63.         ${pkgdir}/usr/share/pixmaps/Phobia3.png || return 1
  64.  
  65.     # Install .desktop file
  66.     install -D -m 644 ${srcdir}/phobia3.desktop \
  67.         ${pkgdir}/usr/share/applications/phobia3.desktop || return 1
  68.  
  69.     # Install Game Launcher
  70.     install -D -m 755 ${srcdir}/phobia3.launcher \
  71.         ${pkgdir}/usr/bin/phobia3 || return 1
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement