#Packager: Dimitris Tzemos pkgname=k3b pkgver=2.0.2 pkgrel=3dj source=("k3b-2.0.2_20120226.git.tar.xz" "k3b-po.patch" "k3b-desktop.patch") docs=("COPYING.DOC" "INSTALL" "README" "FAQ" "RELEASE_HOWTO") options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "k3b (The CD Creator)" "K3b makes writing cds under Linux easy. It has an easy to use" "interface and supports CD burning (including on-the-fly), copying," "erasing, ripping, and more." "K3b was written by Sebastian Trueg, Thomas Froescher," "Christian Kvasny, and Klaus-Dieter Krannich." "" "For more information, visit: http://www.k3b.org" ) build() { cd $startdir/src/k3b-2.0.2_20120226.git # This avoids compiling a version number into KDE's .la files: QTDIR=/usr/lib${LIBDIRSUFFIX}/qt ; export QTDIR # Add missing po files patch -p1 < $startdir/src/k3b-po.patch || return 1 patch -p1 < $startdir/src/k3b-desktop.patch || return 1 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 }