summaryrefslogtreecommitdiffstats
path: root/dilos/tdetoys/debian/kworldclock-trinity.postinst
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2020-01-30 22:13:12 +0300
committerSlávek Banko <slavek.banko@axis.cz>2020-03-08 01:51:52 +0100
commit38471bcdd80beb04d58302912f92ecae1fbdd0af (patch)
treebfc18a6352f70419c16a66735db1d39b363f779e /dilos/tdetoys/debian/kworldclock-trinity.postinst
parent2d6d189ad768bb52674589e83dc08f572a0726e5 (diff)
downloadtde-packaging-38471bcdd80beb04d58302912f92ecae1fbdd0af.tar.gz
tde-packaging-38471bcdd80beb04d58302912f92ecae1fbdd0af.zip
DilOS: tdetoys build pack
Signed-off-by: Denis Kozadaev <denis@dilos.org> (cherry picked from commit 152db2820bbff10ccebcb24ed940cb051ba8ecf6)
Diffstat (limited to 'dilos/tdetoys/debian/kworldclock-trinity.postinst')
-rw-r--r--dilos/tdetoys/debian/kworldclock-trinity.postinst15
1 files changed, 15 insertions, 0 deletions
diff --git a/dilos/tdetoys/debian/kworldclock-trinity.postinst b/dilos/tdetoys/debian/kworldclock-trinity.postinst
new file mode 100644
index 000000000..b40f4edbd
--- /dev/null
+++ b/dilos/tdetoys/debian/kworldclock-trinity.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
+
+# Link /usr/share/apps/kworldwatch to /usr/share/apps/kworldclock.
+if [ "$1" = "configure" ]; then
+ if [ -d ${BASEDIR}/usr/share/apps -a ! -e ${BASEDIR}/usr/share/apps/kworldwatch -a -d ${BASEDIR}/usr/share/apps/kworldclock ]; then
+ ln -sf kworldclock ${BASEDIR}/usr/share/apps/kworldwatch
+ fi
+fi
+
+#DEBHELPER#
+exit 0