1 # Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
6 pkgdesc="Cross-platform 3D Massively Multiplayer Online Role-playing Game (MMORPG)"
9 url="http://www.regnumonline.com.ar"
10 license=('custom:Regnum Online License Agreement')
11 depends=('gtk2' 'mesa' 'openal' 'libjpeg' 'libpng12' 'libvorbis' 'libtheora')
13 install=regnum-online.install
16 sha256sums=('a82310cdfa0ebb6cefc5910fecd00128cfb4f11099c68fc90d3ce9eb996d476c'
17 'e11e273168d04adc3db8e8e5c23c127cb2ca5be7f99dbaf891313ff665b79596'
18 '294f5308340ddc50d4e54a26964cbc18ba92d2bac95c97bc7c78a4eb1d71b21a'
19 'a7ab3edda632f9ae4a80dfa1dd5ae360c85ab3b449f40303855fa7c804561b20'
20 '8a8d907aee0008ee6af4b34e7e5f0779b7830c6d61b74dfe0772bc63c1e519be')
22 [ "$CARCH" = "x86_64" ] && sha256sums[0]='df2685b661edc461cea44f8c8c407559bc2f12d916982c940819eb846030ce66'
23 [ "$CARCH" = "x86_64" ] && _arch=64
24 #[ "$CARCH" = "x86_64" ] && makedepends=('lib32-glibc')
26 # For gzip compression
29 source=(http://download01.regnumonlinegame.com/downloads/installer/RegnumOnlineInstall_$_arch
38 chmod +x RegnumOnlineInstall_$_arch
39 ./RegnumOnlineInstall_$_arch --prefix "${srcdir}"/reg-extract --mode silent
42 mkdir -p "${pkgdir}"/opt/regnum
43 cd "${pkgdir}"/opt/regnum
44 mv -f "${srcdir}"/reg-extract/* .
46 rm -rf {uninstall,RegnumOnline.exe}
47 find -type f -exec chmod 664 {} +
49 chmod 775 "${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