1 # Contributor: zoulnix <http://goo.gl/HQaP>
5 pkgdesc="A free 2D online role playing game."
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')
12 source=(http://download.tibia.com/${pkgname}${pkgver/./}.tgz \
16 md5sums=('3abff91c1aaf213b3ff24b26fb6a7f7c' '5f5c3a2aca2df581608c8916e4020f77' \
17 '8aece042ac8ef9eca96c9fe95136817b' '31890b0547961924b58db0afc33e6411')
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
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