Advertisement
Guest User

Regnum Online PKGBUILD

a guest
Apr 18th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.15 KB | None | 0 0
  1. # Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
  2.  
  3. pkgname=regnum-online
  4. pkgver=1.7.0
  5. pkgrel=1
  6. pkgdesc="Cross-platform 3D Massively Multiplayer Online Role-playing Game (MMORPG)"
  7. arch=('i686' 'x86_64')
  8. _arch=32
  9. url="http://www.regnumonline.com.ar"
  10. license=('custom:Regnum Online License Agreement')
  11. depends=('gtk2' 'mesa' 'openal' 'libjpeg' 'libvorbis' 'libtheora')
  12. makedepends=()
  13. install=regnum-online.install
  14. options=()
  15.  
  16. sha256sums=('56e0d31fd1eaab5f5ebf1e7368ab3e67c8bf2e3446e977ddb5a68375c69ddfe2'
  17.             'e11e273168d04adc3db8e8e5c23c127cb2ca5be7f99dbaf891313ff665b79596'
  18.             '294f5308340ddc50d4e54a26964cbc18ba92d2bac95c97bc7c78a4eb1d71b21a'
  19.             'a7ab3edda632f9ae4a80dfa1dd5ae360c85ab3b449f40303855fa7c804561b20'
  20.             '8a8d907aee0008ee6af4b34e7e5f0779b7830c6d61b74dfe0772bc63c1e519be')
  21.  
  22. [ "$CARCH" = "x86_64" ] && sha256sums[0]='55e0d31fd1eaab5f5ebf1e7368ab3e67c8bf2e3446e977ddb5a68375c69ddfe2'
  23. [ "$CARCH" = "x86_64" ] && _arch=64
  24. #[ "$CARCH" = "x86_64" ] && makedepends=('lib32-glibc')
  25.  
  26. # For gzip compression
  27. PKGEXT='.pkg.tar.gz'
  28.  
  29. source=(http://download01.regnumonlinegame.com/downloads/installer/RegnumOnlineInstall_$_arch
  30.     regnum-online.desktop
  31.     regnum-online
  32.     LICENSE
  33.     regnum.png)
  34.  
  35. build() {
  36.         cd $srcdir
  37.         mkdir -p reg-extract
  38.         chmod +x RegnumOnlineInstall_$_arch
  39.         ./RegnumOnlineInstall_$_arch --prefix "${srcdir}"/reg-extract --mode silent
  40. }
  41. package() {
  42.         mkdir -p "${pkgdir}"/opt/regnum
  43.         cd "${pkgdir}"/opt/regnum
  44.         mv -f "${srcdir}"/reg-extract/* .
  45.         rm -rf */
  46.         rm -rf {uninstall,RegnumOnline.exe}
  47.         find -type f -exec chmod 664 {} +
  48.         chmod +x rolauncher
  49.         chmod 2775 "${pkgdir}"/opt/regnum
  50.         chown -R root:games "${pkgdir}"/opt/regnum
  51.         install -Dm755 "${srcdir}"/regnum-online "${pkgdir}"/usr/bin/$pkgname
  52.         install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  53.         install -Dm644 "${srcdir}"/regnum-online.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
  54.         install -Dm644 "${srcdir}"/regnum.png "${pkgdir}"/usr/share/pixmaps/regnum.png
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement