summaryrefslogtreecommitdiff
path: root/distro/archlinux/mate-document-viewer.install
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-09 18:33:05 -0300
committerPerberos <[email protected]>2011-11-09 18:33:05 -0300
commit342e9e9bf91625bf6f0102fb7bbc652dea222064 (patch)
tree9389fe0a3d64bcd6378939b2b7c1d79e6e5d3863 /distro/archlinux/mate-document-viewer.install
parentf6ce926719943751cf65cacde7fae050593eb2d6 (diff)
downloadatril-342e9e9bf91625bf6f0102fb7bbc652dea222064.tar.bz2
atril-342e9e9bf91625bf6f0102fb7bbc652dea222064.tar.xz
adding archlinux PKGBUILD
Diffstat (limited to 'distro/archlinux/mate-document-viewer.install')
-rw-r--r--distro/archlinux/mate-document-viewer.install28
1 files changed, 28 insertions, 0 deletions
diff --git a/distro/archlinux/mate-document-viewer.install b/distro/archlinux/mate-document-viewer.install
new file mode 100644
index 00000000..2079c0d5
--- /dev/null
+++ b/distro/archlinux/mate-document-viewer.install
@@ -0,0 +1,28 @@
+pkgname=mate-document-viewer
+
+post_install() {
+ usr/sbin/mateconfpkg --install ${pkgname}
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ update-desktop-database -q
+
+ update-mime-database usr/share/mime > /dev/null
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/mateconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+ update-mime-database usr/share/mime > /dev/null
+}