summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNarrat2017-01-20 17:46:31 +0100
committerNarrat2017-01-20 17:46:31 +0100
commit695c26862f03e0f53bbf46c05722389663beed03 (patch)
tree9cb9fc131fb321319bce35f3092767a76fa6c0ef /PKGBUILD
parent9ebafea15a0571dacbf7e1e37b2d3c891284a315 (diff)
downloadaur-695c26862f03e0f53bbf46c05722389663beed03.tar.gz
tibia: Give the group games write access to /opt/Tibia
Without write access, the game cannot be started, if the config file is missing, or the minimap files updated. And it seems, the binary doesn't check for default environment variables, so the config path cannot be adjusted (And the old way fails).
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 20a16f7e762f..6a23c664759e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=tibia
pkgver=11.04.4320
-pkgrel=1
+pkgrel=2
pkgdesc="A fast-paced free massively multiplayer online role-playing game."
arch=('x86_64')
url="http://www.tibia.com"
@@ -29,6 +29,9 @@ prepare() {
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"