- # created 21:46:58 - 24/09/09
- # edited 21:54:26 - 26/07/10
- # Original Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
- # Current Maintainer: Chaniyth <chaniyth at yahoo dot com>
- # Temporary Maintainer: Custom Processing Unlimited <CPUnltd at gmail dot com>
- #NOTE: manually creating /var/lib/installjammer via sudo may be required for build to work... unsure of workaround
- pkgname=regnum-online
- pkgver=1.6.5
- pkgrel=1
- pkgdesc="Cross-platform 3D Massively Multiplayer Online Role-playing Game (MMORPG)"
- arch=('i686' 'x86_64')
- _arch=32
- url="http://www.regnumonline.com.ar"
- license=('custom:Regnum Online License Agreement')
- depends=('gtk2' 'mesa' 'openal' 'libjpeg' 'libvorbis' 'libtheora')
- makedepends=()
- install=regnum-online.install
- options=()
- md5sums=('da6f2d3f15298eb325b0c95f97fda802' #needs to be built on a 32bit system w 'makepkg -g' to replace this md5
- '611cbbc1fc19d420d319fae29ee7c581'
- '51ac27deb5390ab360bbc8820f440325'
- 'c12f01458189445a2db477601f395f22'
- '84ab2767f1815869d8b05ce1959dc1d6')
- [ "$CARCH" = "x86_64" ] && md5sums[0]='b5f03cedee629cdcebb628acf4628b20'
- [ "$CARCH" = "x86_64" ] && _arch=64
- #[ "$CARCH" = "x86_64" ] && makedepends=('lib32-glibc')
- source=(http://download01.regnumonlinegame.com/downloads/installer/RegnumOnlineInstall_$_arch
- regnum-online.desktop
- regnum-online
- LICENSE
- regnum.png)
- build() {
- mkdir -p ${pkgdir}/opt/regnum || return 1
- chmod +x RegnumOnlineInstall_$_arch
- ./RegnumOnlineInstall_$_arch --prefix ${pkgdir}/opt/regnum --mode silent
- cd ${pkgdir}/opt/regnum
- rm -rf */
- rm -rf uninstall
- find -type f -exec chmod 664 {} + || return 1
- chmod +x rolauncher || return 1
- chmod 2775 ${pkgdir}/opt/regnum || return 1
- chown -R root:games ${pkgdir}/opt/regnum || return 1
- install -Dm755 ${srcdir}/regnum-online ${pkgdir}/usr/bin/$pkgname || return 1
- install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
- install -Dm644 ${srcdir}/regnum-online.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
- install -Dm644 ${srcdir}/regnum.png ${pkgdir}/usr/share/pixmaps/regnum.png || return 1
- }