#packager: Dimitris Tzemos pkgname=razorqt pkgver=0.4.1 pkgrel=1dj source=("http://razor-qt.org/downloads/$pkgname-$pkgver.tar.bz2" "getopt.h.patch") url="http://razor-qt.org" docs=('README') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Razor-qt is an advanced, easy-to-use, and fast desktop environment" "based on Qt technologies. It has been tailored for users who value" "simplicity, speed, and an intuitive interface. Unlike most desktop" "environments, Razor-qt also works fine with weak machines." ) build() { # how many build jobs? JOBS="-j$(($(getconf _NPROCESSORS_ONLN)*2))" NUMJOBS="${NUMJOBS:-"${JOBS}"}" cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/getopt.h.patch || return 1 cd $startdir/src/ 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} \ ../$pkgname-$pkgver make $NUMJOBS || return 1 make DESTDIR=$startdir/pkg/ install || return 1 } # Doinst doinst() { if [ -r /usr/share/config/kdm/kdmrc ] ; then sed -i "s/SessionsDirs=.*/SessionsDirs=\/usr\/share\/config\/kdm\/sessions,\/usr\/share\/apps\/kdm\/sessions,\/usr\/share\/xsessions/" /usr/share/config/kdm/kdmrc fi }