updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / regnum-online / PKGBUILD
blob40b49fc95c70419c693e038c7ed70b745fbcb9ac
1 # Maintainer: Frikilinux <frikilinux at frikilinux.com.ar>
3 pkgname=regnum-online
4 pkgver=1.7.6
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' 'libpng12' 'libvorbis' 'libtheora')
12 makedepends=()
13 install=regnum-online.install
14 options=(!strip)
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
27 PKGEXT='.pkg.tar.gz'
29 source=(http://download01.regnumonlinegame.com/downloads/installer/RegnumOnlineInstall_$_arch
30         regnum-online.desktop
31         regnum-online
32         LICENSE
33         regnum.png)
35 build() {
36         cd "${srcdir}"
37         mkdir -p reg-extract
38         chmod +x RegnumOnlineInstall_$_arch
39         ./RegnumOnlineInstall_$_arch --prefix "${srcdir}"/reg-extract --mode silent
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 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