summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
diff options
context:
space:
mode:
authordobedobedo2020-03-13 17:09:42 +0800
committerdobedobedo2020-03-13 17:09:42 +0800
commitb55fbbdfca644cc92bb6aca6ca53b994888e0598 (patch)
tree4c01b9a7431f81f467e21292d68e7be8a440dbce /agisoft-delighter.install
downloadaur-b55fbbdfca644cc92bb6aca6ca53b994888e0598.tar.gz
Initial upload
Diffstat (limited to 'agisoft-delighter.install')
-rw-r--r--agisoft-delighter.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/agisoft-delighter.install b/agisoft-delighter.install
new file mode 100644
index 00000000000..84af1a236c7
--- /dev/null
+++ b/agisoft-delighter.install
@@ -0,0 +1,25 @@
+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
+ echo
+ echo "The launcher is called agisoft-delighter"
+ echo
+}
+
+post_remove() {
+ rm -rf /opt/agisoft/delighter
+ rm -d /opt/agisoft 2>/dev/null
+ echo
+ echo "The users data were kept at the below locations"
+ echo "\$HOME/.agisoft"
+ echo "\$HOME/.config/Agisoft"
+ echo "\$HOME/.local/share/Agisoft"
+ echo
+}