desktop/libkomparediff2/PKGBUILD
Fabian Kosmale 827103a7bc some fixes
2014-03-26 12:37:59 +00:00

40 lines
1.1 KiB
Bash

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
# Andrea Scarpino <andrea@archlinux.org>
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=('i686' '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
}