diff options
author | Narrat | 2017-01-20 17:46:31 +0100 |
---|---|---|
committer | Narrat | 2017-01-20 17:46:31 +0100 |
commit | 695c26862f03e0f53bbf46c05722389663beed03 (patch) | |
tree | 9cb9fc131fb321319bce35f3092767a76fa6c0ef | |
parent | 9ebafea15a0571dacbf7e1e37b2d3c891284a315 (diff) | |
download | aur-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-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 6 insertions, 3 deletions
@@ -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 @@ -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" |