diff options
author | Narrat | 2018-10-17 20:38:57 +0200 |
---|---|---|
committer | Narrat | 2018-10-17 20:38:57 +0200 |
commit | c2962ddda2769e481d17291377c3d056efd5136c (patch) | |
tree | 584c55bf8e9389d255fcd534b7afe3519be55cf2 | |
parent | e3d05e37f12fe6782c13cc7f455b913b64a31f62 (diff) | |
download | aur-c2962ddda2769e481d17291377c3d056efd5136c.tar.gz |
Tibia: update stuff
No version information anymore, starter script got renamed and patch files needed some adjustments.
I really hate their way of packaging this...
-rw-r--r-- | 01_openssl102.patch | 10 | ||||
-rw-r--r-- | 02_freetype.patch | 8 | ||||
-rw-r--r-- | PKGBUILD | 25 |
3 files changed, 19 insertions, 24 deletions
diff --git a/01_openssl102.patch b/01_openssl102.patch index da2cd559e70d..8be99280af5e 100644 --- a/01_openssl102.patch +++ b/01_openssl102.patch @@ -1,9 +1,9 @@ ---- start-tibia.sh -+++ start-tibia.sh +--- start-tibia-launcher.sh ++++ start-tibia-launcher.sh @@ -7,4 +7,4 @@ + SCRIPT=$(readlink -f "$0") PATH=$(dirname "$SCRIPT") - BIN_PATH="$PATH/bin" --LD_LIBRARY_PATH="$BIN_PATH" exec "$BIN_PATH/client" -+LD_LIBRARY_PATH="$BIN_PATH:/usr/lib/openssl-1.0/" exec "$BIN_PATH/client" +-LD_LIBRARY_PATH="$PATH" exec "$PATH/Tibia" ++LD_LIBRARY_PATH="$PATH:/usr/lib/openssl-1.0/" exec "$PATH/Tibia" diff --git a/02_freetype.patch b/02_freetype.patch index 19a858d84b27..d14d4424927d 100644 --- a/02_freetype.patch +++ b/02_freetype.patch @@ -1,10 +1,10 @@ ---- start-tibia.sh -+++ start-tibia.sh +--- start-tibia-launcher.sh ++++ start-tibia-launcher.sh @@ -6,5 +6,6 @@ + SCRIPT=$(readlink -f "$0") PATH=$(dirname "$SCRIPT") - BIN_PATH="$PATH/bin" +export FREETYPE_PROPERTIES="truetype:interpreter-version=38" - LD_LIBRARY_PATH="$BIN_PATH" exec "$BIN_PATH/client" + LD_LIBRARY_PATH="$PATH" exec "$PATH/client" @@ -1,7 +1,7 @@ # Maintainer: Ricardo Cabral <ricardo.arturo.cabral@gmail.com> pkgname=tibia -pkgver=11.58.6239 +pkgver=latest pkgrel=1 pkgdesc="fast-paced free massively multiplayer online role-playing game" arch=('x86_64') @@ -15,38 +15,33 @@ source=("${pkgname}.tar.gz::http://static.tibia.com/download/tibia.x64.tar.gz" "01_openssl102.patch" "02_freetype.patch") -sha256sums=('SKIP' - '965edf1cf67698f9dcfcbced495e0e96a666207a9a0b91fb769ed386a5f1efe5' - '3d55ac564bb2edc8fe7e826743a774b2191d29a1905bb35e9d9b26528c7a0fe6' - '554748e5e81ab9c693d118d6e6e28408062cdd2a1efc3a1a60a4f13edbcc91a6') +sha256sums=('47ae3dc80e892bf57c2729e507eecadf2ff73263eca46c5edc860b43b772ac4f' + '1200d3d5a77c8408a79a92c2fb4bdb5fa123b928aa036a32d2951e2459f0f7d9' + 'e9e6cdd4e2954ae0838dc427a92871bb9cacdacb0523598c60287a05f8568d1f' + '3cdf107369e4366aa5fc6d1b90ba0b41bd3d19abeb418fb85a693d74c3ece736') prepare() { gendesk -f -n html2text "${pkgname}-agreement.php" > LICENSE - # Patching - cd -- $(find . -maxdepth 1 -type d -iname tibia-\* -print -quit) + cd Tibia # 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" } -pkgver() { - find . -maxdepth 1 -type d -iname tibia-\* -print -quit | sed 's/\.\/tibia-\(.*\)/\1/' -} - package() { - mkdir -p "${pkgdir}/opt/Tibia" - cp -drv --no-preserve=ownership ${pkgname}-${pkgver}/* "${pkgdir}/opt/Tibia" + mkdir -p "${pkgdir}/opt/" + cp -drv --no-preserve=ownership Tibia/ "${pkgdir}/opt/" 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 Tibia/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 + ln -s "../../opt/Tibia/start-tibia-launcher.sh" tibia } |