2014-01-13 00:22:06 +08:00
|
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
|
2013-12-21 04:13:04 +08:00
|
|
|
# Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
2014-03-10 21:38:58 +08:00
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
2013-12-21 04:13:04 +08:00
|
|
|
pkgname=libkomparediff2
|
2014-03-10 21:38:58 +08:00
|
|
|
pkgver=${_kdever}
|
2014-03-04 23:12:44 +08:00
|
|
|
pkgrel=1
|
2013-12-21 04:13:04 +08:00
|
|
|
pkgdesc="Library to compare files and strings"
|
|
|
|
url='https://projects.kde.org/projects/kde/kdesdk/libkomparediff2'
|
2014-08-25 01:33:17 +08:00
|
|
|
arch=('x86_64')
|
2014-03-10 21:38:58 +08:00
|
|
|
license=('GPL'
|
|
|
|
'LGPL'
|
|
|
|
'FDL')
|
|
|
|
depends=("kdelibs>=${_kdever}")
|
|
|
|
makedepends=('cmake'
|
|
|
|
'automoc4')
|
2014-03-26 20:37:59 +08:00
|
|
|
source=("${_mirror}/${pkgname}-${pkgver}.tar.xz")
|
2014-03-10 21:38:58 +08:00
|
|
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
|
2013-12-21 04:13:04 +08:00
|
|
|
|
|
|
|
prepare() {
|
2014-03-10 21:38:58 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
rm -rf "${srcdir}/${pkgname}-${pkgver}/build"
|
|
|
|
mkdir "${srcdir}/${pkgname}-${pkgver}/build"
|
2013-12-21 04:13:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-03-10 21:38:58 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DKDE4_BUILD_TESTS=ON
|
2013-12-21 04:13:04 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-03-10 21:38:58 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
2013-12-21 04:13:04 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|