summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarrat2017-01-20 17:46:31 +0100
committerNarrat2017-01-20 17:46:31 +0100
commit695c26862f03e0f53bbf46c05722389663beed03 (patch)
tree9cb9fc131fb321319bce35f3092767a76fa6c0ef
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).
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9dec215c895e..3a0d4b491f94 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Jan 17 21:52:07 UTC 2017
+# Fri Jan 20 16:46:24 UTC 2017
pkgbase = tibia
pkgdesc = A fast-paced free massively multiplayer online role-playing game.
pkgver = 11.04.4320
- pkgrel = 1
+ pkgrel = 2
url = http://www.tibia.com
arch = x86_64
license = custom
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"