# $Id$ PNAME="kde4-env" PVER="4.14" PBUILD="r1" DESCRIPTION="KDE4 environment and pathes config." HOMEPAGE="http://www.magellan-linux.net/" SRCFILE="" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude kde4 # fake UP2DATE="echo ${PVER}" # unset dependencies from include DEPEND="" SDEPEND="" SRC_URI="" # fake src_prepare() { return 0; } src_compile() { return 0; } postinstall() { return 0; } postremove() { return 0; } src_install() { install -d ${SRCDIR} || die cd ${SRCDIR} MCONFIG="/etc/env.d/49kde4" mclearconfig || die maddconfig "KDEDIRS=\"${KDEDIR}\"" || die maddconfig "CONFIG_PROTECT=\"${KDEDIR}/share/config\"" || die # this one fixes a small glitch of config protect # directories with the same name in the beginning as a one in CONFIG_PROTECT # are assumed as protected. but etc-update never walks along these directories # and many ._cfg00xx files get installed. maddconfig '# Do not remove this line, it fixes a config_protect bug' || die maddconfig "CONFIG_PROTECT_MASK=\"${KDEDIR}/share/config.kcfg\"" || die maddconfig 'KDE_MALLOC=1' || die maddconfig '# Enable this line if your KDE is prelinked.' || die maddconfig '# KDE_IS_PRELINKED=true' || die # qt plugins maddconfig "QT_PLUGIN_PATH=\"${KDEDIR}/$(mlibdir)/kde4/plugins:${QTDIR}/$(mlibdir)/qt/plugins\"" || die # strigi home maddconfig "STRIGI_HOME=\"${KDEDIR}\"" || die if [[ ${KDEDIR} != /usr ]] then maddconfig "PATH=\"${KDEDIR}/bin\"" || die maddconfig "ROOTPATH=\"${KDEDIR}/bin\"" || die maddconfig "LDPATH=\"${KDEDIR}/$(mlibdir)\"" || die fi if [[ ${KDECONFDIR} != /etc ]] then maddconfig "XDG_CONFIG_DIRS=\"${KDECONFDIR}/xdg\"" || die fi }