#Maintainer: Dimitris Jemos #Mandatory pkgname=kdiff3 pkgver=0.9.95 pkgrel=1dj source=("http://switch.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz" "adjust-docbook-xml-version-to-4.2.patch" "desktop.patch") #Optional docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "TODO") url=http://kdiff3.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "kdiff3 (A compare and merge tool for KDE)" "KDiff3 is a file and directory diff and merge tool which compares and" "merges two or three text input files or directories, shows the" "differences line by line and character by character, provides an" "automatic merge-facility, has an editor for comfortable solving of" "merge-conflicts, provides network transparency via KIO, has options to" "highlight or hide changes in whitespace or comments, supports Unicode," "UTF-8 and other file encodings, prints differences, supports version" "control keyword and history merging" ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < ../adjust-docbook-xml-version-to-4.2.patch || return 1 patch -p1 < ../desktop.patch || return 1 mkdir build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 || return 1 make install VERBOSE=1 DESTDIR=$startdir/pkg || return 1 }