summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--agisoft-delighter.install12
3 files changed, 14 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5f69ce9723c..746a5cf3e69 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = agisoft-delighter
pkgdesc = A free stand-alone tool designed to remove shadows from model textures
pkgver = 1.6.5
- pkgrel = 1
+ pkgrel = 2
url = https://www.agisoft.com/
install = agisoft-delighter.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index d87f497ed8b..f594ad0f4da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=delighter
pkgname=agisoft-${_pkgname}
pkgver=1.6.5
-pkgrel=1
+pkgrel=2
pkgdesc="A free stand-alone tool designed to remove shadows from model textures"
arch=('x86_64')
url="https://www.agisoft.com/"
diff --git a/agisoft-delighter.install b/agisoft-delighter.install
index 84af1a236c7..f8eb9ac5fbd 100644
--- a/agisoft-delighter.install
+++ b/agisoft-delighter.install
@@ -13,6 +13,18 @@ post_install() {
echo
}
+post_upgrade() {
+ # Set the correct permission
+ chmod -R g=u /opt/agisoft/delighter
+ chmod -R o=u /opt/agisoft/delighter
+ chmod -R g-w /opt/agisoft/delighter
+ chmod -R o-w /opt/agisoft/delighter
+ chmod -R g=u /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R o=u /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R g-w /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R o-w /usr/share/licenses/agisoft-delighter/licenses
+}
+
post_remove() {
rm -rf /opt/agisoft/delighter
rm -d /opt/agisoft 2>/dev/null