# Maintainer: H W Tovetjärn (totte) # Contributors: Manuel Tortosa # Andrea Scarpino source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=libkomparediff2 pkgver=${_kdever} pkgrel=1 pkgdesc="Library to compare files and strings" url='https://projects.kde.org/projects/kde/kdesdk/libkomparediff2' arch=('x86_64') license=('GPL' 'LGPL' 'FDL') depends=("kdelibs>=${_kdever}") makedepends=('cmake' 'automoc4') source=("${_mirror}/${pkgname}-${pkgver}.tar.xz") sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`) prepare() { cd "${srcdir}/${pkgname}-${pkgver}" rm -rf "${srcdir}/${pkgname}-${pkgver}/build" mkdir "${srcdir}/${pkgname}-${pkgver}/build" } build() { cd "${srcdir}/${pkgname}-${pkgver}/build" cmake .. \ -DCMAKE_BUILD_TYPE=${_build_type} \ -DCMAKE_INSTALL_PREFIX=${_installprefix} \ -DKDE4_BUILD_TESTS=ON make } package() { cd "${srcdir}/${pkgname}-${pkgver}/build" make DESTDIR="${pkgdir}" install }