updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / tibia / PKGBUILD
blob8ff91e481964c9a55653e1bf5cbf9e8bfa1b0499
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=tibia
3 pkgver=8.72
4 pkgrel=1
5 pkgdesc="A free 2D online role playing game."
6 arch=('i686' 'x86_64')
7 url="http://www.tibia.com/"
8 license=('custom:"CipSoft"')
9 [ "$CARCH" = "i686" ] && depends=('libxdamage' 'mesa')
10 [ "$CARCH" = "x86_64" ] && depends=('lib32-libxdamage' 'lib32-mesa')
11 makedepends=('')
12 source=(http://download.tibia.com/${pkgname}${pkgver/./}.tgz \
13         ${pkgname}.desktop \
14         ${pkgname}.png \
15         ${pkgname}.sh)
16 md5sums=('3abff91c1aaf213b3ff24b26fb6a7f7c' '5f5c3a2aca2df581608c8916e4020f77' \
17          '8aece042ac8ef9eca96c9fe95136817b' '31890b0547961924b58db0afc33e6411')
19 build() {
20   cd ${srcdir}/Tibia
24 package() {
25   cd ${srcdir}/Tibia
26   install -d ${pkgdir}/usr/share/{applications,pixmaps,${pkgname}} \
27              ${pkgdir}/usr/bin || return 1
29   rm -rf ${srcdir}/Tibia/{libc6,*.sh}
31   if [ "$CARCH" = "x86_64" ]; then
32     install -d ${pkgdir}/usr/share/${pkgname}/libc6 || return 1
33     ln -s /usr/lib32/ld-* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
34     ln -s /usr/lib32/libanl* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
35     ln -s /usr/lib32/libBrokenLocale* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
36     ln -s /usr/lib32/{libc-*,libc.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
37     ln -s /usr/lib32/libcidn* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
38     ln -s /usr/lib32/libcrypt* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
39     ln -s /usr/lib32/{libdl-*,libdl.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
40     ln -s /usr/lib32/{libm-*,libm.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
41     ln -s /usr/lib32/libmemusage* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
42     ln -s /usr/lib32/{libnsl-*,libnsl.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
43     ln -s /usr/lib32/libnss_* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
44     ln -s /usr/lib32/libpcprofile* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
45     ln -s /usr/lib32/libpthread* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
46     ln -s /usr/lib32/libresolv* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
47     ln -s /usr/lib32/{librt-*,librt.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
48     ln -s /usr/lib32/libSegFault ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
49     ln -s /usr/lib32/libthread_db* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
50     ln -s /usr/lib32/{libutil-*,libutil.*} ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
52     ln -s /usr/lib32/libXdamage* ${pkgdir}/usr/share/${pkgname}/libc6/ || return 1
53   fi
55   install -m755 ${startdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname} || return 1
56   install -m755 Tibia ${pkgdir}/usr/share/${pkgname}/ || return 1
57   install -m644 {*.dat,*.pic,*.spr,Patch,Showerror} ${pkgdir}/usr/share/${pkgname}/ || return 1
59   install -m644 ${startdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/ || return 1
60   install -m644 ${startdir}/${pkgname}.png ${pkgdir}/usr/share/pixmaps/ || return 1
61   install -m644 Tibia.xpm ${pkgdir}/usr/share/pixmaps/${pkgname}.xpm || return 1