blob: bb70bf7a86b15721bdc04d99552bb72630f99322 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Ricardo Cabral <ricardo.arturo.cabral@gmail.com>
pkgname=tibia
pkgver=11.56.6239
pkgrel=1
pkgdesc="fast-paced free massively multiplayer online role-playing game"
arch=('x86_64')
url="http://www.tibia.com"
license=('custom')
depends=('glu' 'libgl' 'libice' 'libxext' 'openssl-1.0' 'pcre' 'qt5-base' 'qt5-declarative')
makedepends=('gendesk' 'python-html2text')
source=("${pkgname}-${pkgver}.tar.gz::http://static.tibia.com/download/tibia.x64.tar.gz"
"${pkgname}-agreement.php::http://www.tibia.com/support/agreement.php"
"01_openssl102.patch"
"02_freetype.patch")
sha256sums=('0b3952c7aa8106d7076b6e6400b443e97e9e15dae45d5822cc49501188807f44'
'965edf1cf67698f9dcfcbced495e0e96a666207a9a0b91fb769ed386a5f1efe5'
'aae43ab859167f62b5febb61ecb0e974c1b09afcf08b425ced7ad3808347fd27'
'03e84655027ef3b914144336378340302f1768ec15e8c02b0828074f85cffc44')
prepare() {
gendesk -f -n
html2text "${pkgname}-agreement.php" > LICENSE
# Tibia relies on openssl 1.0.x
patch -Np0 -i "${srcdir}/01_openssl102.patch"
# Tibia relies on specific freetype version
patch -Np0 -i "${srcdir}/02_freetype.patch"
}
package() {
mkdir -p "${pkgdir}/opt/Tibia"
cp -drv --no-preserve=ownership ${pkgname}-${pkgver}/* "${pkgdir}/opt/Tibia"
chmod -R 775 "${pkgdir}/opt/Tibia"
chgrp -R games "${pkgdir}/opt/Tibia"
install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 ${pkgname}-${pkgver}/tibia.ico -t "${pkgdir}/usr/share/pixmaps/"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/bin"
cd "${pkgdir}/usr/bin/"
ln -s "../../opt/Tibia/start-tibia.sh" tibia
}
|