desktop/libkomparediff2/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

# 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>
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2013-12-21 04:13:04 +08:00
pkgname=libkomparediff2
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')
license=('GPL'
'LGPL'
'FDL')
2015-02-20 06:29:49 +08:00
depends=("kdelibs>=${_libsver}")
makedepends=('cmake'
'automoc4')
2014-03-26 20:37:59 +08:00
source=("${_mirror}/${pkgname}-${pkgver}.tar.xz")
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
2013-12-21 04:13:04 +08:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
rm -rf "${srcdir}/${pkgname}-${pkgver}/build"
mkdir "${srcdir}/${pkgname}-${pkgver}/build"
2013-12-21 04:13:04 +08:00
}
build() {
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() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
2013-12-21 04:13:04 +08:00
make DESTDIR="${pkgdir}" install
}