summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortydell2018-03-19 17:24:33 +0100
committertydell2018-03-19 17:24:33 +0100
commit1f4d4a92565972fad7cf60c25008b2cfe65183e6 (patch)
tree7ed3836358f70d107b0205cabb76a2ed8486756e
parente73613f22f0cd949cf324194432a683ad72fffa8 (diff)
downloadaur-1f4d4a92565972fad7cf60c25008b2cfe65183e6.tar.gz
First release v2
-rwxr-xr-xPKGBUILD1
-rwxr-xr-xclickable.install26
2 files changed, 15 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c1a79d7389b..057539f9195 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,5 +32,4 @@ cp -R ${srcdir}/${pkgname} ${pkgdir}/opt/${pkgname}
}
-
# vim: ts=2 sw=2 et:
diff --git a/clickable.install b/clickable.install
index a7cae5fa067..540be158f91 100755
--- a/clickable.install
+++ b/clickable.install
@@ -1,22 +1,26 @@
post_install() {
- glib-compile-schemas usr/share/glib-2.0/schemas
- gtk-update-icon-cache -ftq usr/share/icons/hicolor
- echo "Add clickable to PATH\n"
- echo "export PATH=\$PATH:\/opt/clickable" >> ~/.$(echo ${SHELL##*/})rc
- source ~/.$(echo ${SHELL##*/})rc
- echo "Configure docker for clickable\n"
+ echo "Add clickable to PATH"
+ echo "export PATH=\$PATH:\/opt/clickable" >> /$HOME/.$(echo ${SHELL##*/})rc
+ source /$HOME/.$(echo ${SHELL##*/})rc
+ echo "Configure docker for clickable"
clickable setup-docker
- }
+
+}
post_upgrade() {
- glib-compile-schemas usr/share/glib-2.0/schemas
- gtk-update-icon-cache -ftq usr/share/icons/hicolor
+
+ sed -n -i '/clickable/!p' /$HOME/.$(echo ${SHELL##*/})rc
+ echo "export PATH=\$PATH:\/opt/clickable" >> /$HOME/.$(echo ${SHELL##*/})rc
+ source /$HOME/.$(echo ${SHELL##*/})rc
+
}
post_remove() {
- glib-compile-schemas usr/share/glib-2.0/schemas
- gtk-update-icon-cache -ftq usr/share/icons/hicolor
+
+ sed -n -i '/clickable/!p' /$HOME/.$(echo ${SHELL##*/})rc
+ source /$HOME/.$(echo ${SHELL##*/})rc
+
}
# vim: ts=2 sw=2 et: