Don't like ads? PRO users don't see any ads ;-)
Guest

Regnum Online 165 PKGBUILD

By: a guest on Nov 21st, 2010  |  syntax: None  |  size: 2.22 KB  |  hits: 130  |  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. # created 21:46:58 - 24/09/09
  2. # edited  21:54:26 - 26/07/10
  3. # Original Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
  4. # Current Maintainer: Chaniyth <chaniyth at yahoo dot com>
  5. # Temporary Maintainer: Custom Processing Unlimited <CPUnltd at gmail dot com>
  6.  
  7. #NOTE: manually creating /var/lib/installjammer via sudo may be required for build to work... unsure of workaround
  8.  
  9. pkgname=regnum-online
  10. pkgver=1.6.5
  11. pkgrel=1
  12. pkgdesc="Cross-platform 3D Massively Multiplayer Online Role-playing Game (MMORPG)"
  13. arch=('i686' 'x86_64')
  14. _arch=32
  15. url="http://www.regnumonline.com.ar"
  16. license=('custom:Regnum Online License Agreement')
  17. depends=('gtk2' 'mesa' 'openal' 'libjpeg' 'libvorbis' 'libtheora')
  18. makedepends=()
  19. install=regnum-online.install
  20. options=()
  21. md5sums=('da6f2d3f15298eb325b0c95f97fda802' #needs to be built on a 32bit system w 'makepkg -g' to replace this md5
  22.          '611cbbc1fc19d420d319fae29ee7c581'
  23.          '51ac27deb5390ab360bbc8820f440325'
  24.          'c12f01458189445a2db477601f395f22'
  25.          '84ab2767f1815869d8b05ce1959dc1d6')
  26.  
  27. [ "$CARCH" = "x86_64" ] && md5sums[0]='b5f03cedee629cdcebb628acf4628b20'
  28. [ "$CARCH" = "x86_64" ] && _arch=64
  29. #[ "$CARCH" = "x86_64" ] && makedepends=('lib32-glibc')
  30.  
  31. source=(http://download01.regnumonlinegame.com/downloads/installer/RegnumOnlineInstall_$_arch
  32.         regnum-online.desktop
  33.         regnum-online
  34.         LICENSE
  35.         regnum.png)
  36.  
  37. build() {
  38.  
  39.         mkdir -p ${pkgdir}/opt/regnum || return 1
  40.  
  41.         chmod +x RegnumOnlineInstall_$_arch
  42.         ./RegnumOnlineInstall_$_arch --prefix ${pkgdir}/opt/regnum --mode silent
  43.  
  44.         cd ${pkgdir}/opt/regnum
  45.         rm -rf */
  46.         rm -rf uninstall
  47.         find -type f -exec chmod 664 {} + || return 1
  48.  
  49.         chmod +x rolauncher || return 1
  50.         chmod 2775 ${pkgdir}/opt/regnum || return 1
  51.         chown -R root:games ${pkgdir}/opt/regnum || return 1
  52.  
  53.         install -Dm755 ${srcdir}/regnum-online ${pkgdir}/usr/bin/$pkgname || return 1
  54.         install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
  55.         install -Dm644 ${srcdir}/regnum-online.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
  56.         install -Dm644 ${srcdir}/regnum.png ${pkgdir}/usr/share/pixmaps/regnum.png || return 1
  57.  
  58. }