summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordobedobedo2020-11-11 17:34:27 +0800
committerdobedobedo2020-11-11 17:34:27 +0800
commitcbc11b3a7b031edecbfe1e48de6e01b833d71dd8 (patch)
treed23a79b0bded52217b80554aeaaf998ffba8c05c
parent1e7809de1a13a062ce0a380e7092d2a4930cb8bd (diff)
downloadaur-cbc11b3a7b031edecbfe1e48de6e01b833d71dd8.tar.gz
Update PKGBUILD to fix permission issues
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD16
-rw-r--r--agisoft-delighter.install22
3 files changed, 15 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 746a5cf3e69..2d1ae422139 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 = 2
+ pkgrel = 3
url = https://www.agisoft.com/
install = agisoft-delighter.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index f594ad0f4da..dc66749c187 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=delighter
pkgname=agisoft-${_pkgname}
pkgver=1.6.5
-pkgrel=2
+pkgrel=3
pkgdesc="A free stand-alone tool designed to remove shadows from model textures"
arch=('x86_64')
url="https://www.agisoft.com/"
@@ -17,8 +17,8 @@ sha256sums=('f645dd91dacf90dcac5ef60f2f2429a292219108852ad3ce4e7af3660ce16ecb'
'6cc74a4ac8ec776ebea5eff2383ddaf2520bb0a47f7d2135a62277dbd9206921')
build() {
- # Create desktop entries
- echo "[Desktop Entry]
+ # Create desktop entries
+ echo "[Desktop Entry]
Type=Application
Name=Agisoft De-Lighter
Comment=Remove shadows from model textures
@@ -86,4 +86,14 @@ package() {
# Create executables in /usr/bin
install -Dm755 "$srcdir/agisoft-delighter" "$pkgdir/usr/bin/agisoft-delighter"
+
+ # Set correct permission
+ chmod -R g=u "$pkgdir/opt/agisoft/${_pkgname}"
+ chmod -R o=u "$pkgdir/opt/agisoft/${_pkgname}"
+ chmod -R g-w "$pkgdir/opt/agisoft/${_pkgname}"
+ chmod -R o-w "$pkgdir/opt/agisoft/${_pkgname}"
+ chmod -R g=u "$pkgdir/usr/share/licenses/$pkgname/licenses"
+ chmod -R o=u "$pkgdir/usr/share/licenses/$pkgname/licenses"
+ chmod -R g-w "$pkgdir/usr/share/licenses/$pkgname/licenses"
+ chmod -R o-w "$pkgdir/usr/share/licenses/$pkgname/licenses"
}
diff --git a/agisoft-delighter.install b/agisoft-delighter.install
index f8eb9ac5fbd..ea979b4c463 100644
--- a/agisoft-delighter.install
+++ b/agisoft-delighter.install
@@ -1,30 +1,10 @@
post_install() {
- # 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
+ # Display the name of executable
echo
echo "The launcher is called agisoft-delighter"
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