#Maintainer: Christopher Rey P. Baluyut pkgname=kdewebdev pkgver=4.4.1 pkgrel=2 zenver=64 arch=i686 source=("http://ftp-stud.fht-esslingen.de/Mirrors/ftp.kde.org/pub/kde/stable/$pkgver/src/$pkgname-$pkgver.tar.bz2" "http://zenwalk.pinguix.com/user-accounts/shingoku/kde/$pkgname/source/patches/tidy.patch") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/shingoku/kde/$pkgname/source docs=("AUTHORS" "COPYING*" "INSTALL*" "NEWS" "PACKAGING" "README" "TODO" "VERSION") url="http://www.kde.org" doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "kdewebdev (web development package for the K Desktop Environment)" "The kdewebdev package contains Quanta Plus and other applications" "which are useful for web development." ) build() { if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi cd $startdir/src/$pkgname-$pkgver patch -p0 < $startdir/src/tidy.patch || exit 1 mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="-O2 -march=i686 -mtune=i686" \ -DCMAKE_CXX_FLAGS:STRING="-O2 -march=i686 -mtune=i686" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMAN_INSTALL_DIR=/usr/man \ -DSYSCONF_INSTALL_DIR=/etc/kde \ -DLIB_SUFFIX="" \ -DLIBTIDY_INCLUDE_DIR=/usr/include/tidy \ -DLIBTIDY_LIBRARIES=/usr/lib/libtidy.so \ .. make -j2 || exit 1 make install DESTDIR=$startdir/pkg || exit 1 }