summaryrefslogtreecommitdiff
path: root/app-misc/kogaion-skel
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-12-26 01:04:55 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-12-26 01:04:55 +0200
commit8006fd7205da9b80920baa80c7d064bafe461444 (patch)
tree7eb33dbc0a401ea8d44b9fde8462d27395f55df9 /app-misc/kogaion-skel
parenta254ebed8bea29bddda34b79096e5398cf716d12 (diff)
Mate applets ebuilds added
Diffstat (limited to 'app-misc/kogaion-skel')
-rw-r--r--app-misc/kogaion-skel/kogaion-skel-1.ebuild25
1 files changed, 24 insertions, 1 deletions
diff --git a/app-misc/kogaion-skel/kogaion-skel-1.ebuild b/app-misc/kogaion-skel/kogaion-skel-1.ebuild
index 8b858cab..41188a21 100644
--- a/app-misc/kogaion-skel/kogaion-skel-1.ebuild
+++ b/app-misc/kogaion-skel/kogaion-skel-1.ebuild
@@ -1,4 +1,5 @@
-# Copyright 1999-2012 Sabayon Linux and Rogentos Linux
+# Copyright 1999-2014 Sabayon Linux
+# Copyright 2014 Kogaion
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -22,6 +23,28 @@ src_install () {
cp "${S}"/* "${D}"/etc/ -Ra
chown root:root "${D}"/etc/skel -R
+ dodir /usr/share/desktop-directories
+ cp "${FILESDIR}"/3.0/xdg/*.directory "${D}"/usr/share/desktop-directories/
+ dodir /usr/share/kogaion
+ cp -a "${FILESDIR}"/3.0/* "${D}"/usr/share/kogaion/
+ doicon "${FILESDIR}"/3.0/img/kogaion-weblink.png
+
insinto /etc/bash/ || die "Failed to insinto"
doins "${S}"/skel/.bash/bashrc /etc/bash/ || die "Cannot copy bashrc"
}
+
+pkg_postinst() {
+ if [ -x "/usr/bin/xdg-desktop-menu" ]; then
+ xdg-desktop-menu install \
+ /usr/share/kogaion/xdg/kogaion-kogaion.directory \
+ /usr/share/kogaion/xdg/*.desktop
+ fi
+
+ fdo-mime_desktop_database_update
+}
+
+pkg_prerm() {
+ if [ -x "/usr/bin/xdg-desktop-menu" ]; then
+ xdg-desktop-menu uninstall /usr/share/kogaion/xdg/kogaion-argetn.directory /usr/share/kogaion/xdg/*.desktop
+ fi
+}