From 8006fd7205da9b80920baa80c7d064bafe461444 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Fri, 26 Dec 2014 01:04:55 +0200 Subject: Mate applets ebuilds added --- app-misc/kogaion-skel/kogaion-skel-1.ebuild | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'app-misc') 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 +} -- cgit v1.2.3