# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header:$ inherit flag-o-matic kde || die append-flags -DENABLE_REPAINT need-kde 3.2 RES_PV="0.3" DESCRIPTION="${PN}, an docker for KDE, similar to Mac OS-X docker." SRC_URI="http://www.xiaprojects.com/www/downloads/files/${P}.tar.bz2 http://www.xiaprojects.com/www/downloads/files/${PN}_resources_${RES_PV}.tar.bz2" HOMEPAGE="http://www.xiaprojects.com/www/prodotti/kxdocker/main.php" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" SLOT="0" src_unpack() { unpack ${P}.tar.bz2 mkdir ${WORKDIR}/resources cd ${S}/../resources/ unpack ${PN}_resources_${RES_PV}.tar.bz2 mkdir plugins cd plugins tar -jxf ../${PN}_resources_${RES_PV}/plugins.tar.bz2 cd .. mkdir themes cd themes tar -jxf ../${PN}_resources_${RES_PV}/themes.tar.bz2 cd ${S} } src_install() { make install DESTDIR=${D} cp -r "${WORKDIR}/resources/plugins/" "${D}/usr/share/apps/kxdocker/" cp -r "${WORKDIR}/resources/themes/" "${D}/usr/share/apps/kxdocker/" cp "${S}/src/kxdocker_conf.xml" "${D}/usr/share/apps/kxdocker/" } pkg_postinst() { einfo "When starting kxdocker the first time, you have to select the file" einfo ""${D}/usr/share/apps/kxdocker/"" }