# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header inherit kde eutils IUSE="" MY_PV="${PV/_/}" MY_P="${PN}-${MY_PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Kbfx is meant to be a kicker bar menu button replacement on KDE" HOMEPAGE="http://www.linuxlots.com/~siraj/kde/plugin/home/" SRC_URI="http://www.linuxlots.com/~siraj/kde/plugin/${MY_P}.tar.bz2 http://www.linuxlots.com/~siraj/kde/plugin/setup.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" need-kde 3.3 DOCS="INSTALL" src_unpack() { unpack ${A} cd ${WORKDIR}/vista epatch ${FILESDIR}/kbfx-better_setup_script.patch } src_install() { cd ${WORKDIR}/vista dodir /usr/share/kbfx cp -ar * ${D}/usr/share/kbfx chmod 644 ${D}/usr/share/kbfx/*.{png,gz} ${D}/usr/share/kbfx/kbfxrc chmod 755 ${D}/usr/share/kbfx/setup.sh kde_src_install } pkg_postinst() { echo einfo "In order to use kbfx, first you have to run a setup script" einfo "located in /usr/share/kbfx/setup.sh with a single parameter" einfo "which is theme name you want to use (currently vista and" einfo "slate are available) - without this parameter, by default" einfo "vista theme will be used" echo ewarn "Remember that you need to execute setup script for each" ewarn "user, who wish to use kbfx" echo }