#Packager: Dimitris Tzemos pkgname=kde-baseapps-lite pkgver=4.10.5 pkgrel=1dj source=("kde-baseapps-4.10.5.tar.xz" "no-konq.diff" "profile.d.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("COPYING" "AUTHORS" "README" "COPYING.LIB" "COPYING.DOC") options=('nosrcpack') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "kde-baseapps-lite (KDE core applications and files)" "This package provides the core applications and infrastructure files" "for the KDE Plasma Desktop." "This package does not include konqueror, the KDE web browser/file" "manager. Konqueror is included in the full kde-baseapps package." ) build() { cd $startdir/src/kde-baseapps-4.10.5 # patch a problem where closing a konsole tab breaks the right-click context menu: patch -p1 < $startdir/src/no-konq.diff || return 1 # This avoids compiling a version number into KDE's .la files: QTDIR=/usr/lib${LIBDIRSUFFIX}/qt ; export QTDIR mkdir build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMAN_INSTALL_DIR=/usr/man \ -DSYSCONF_INSTALL_DIR=/etc/kde \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ .. make || return 1 make install DESTDIR=$startdir/pkg # Add profile scripts mkdir -p $startdir/pkg/etc/profile.d || return 1 cat $startdir/src/profile.d/kde.sh | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \ > $startdir/pkg/etc/profile.d/kde.sh || return 1 cat $startdir/src/profile.d/kde.csh | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \ > $startdir/pkg/etc/profile.d/kde.csh || return 1 chmod 0755 $startdir/pkg/etc/profile.d/* }