mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
40 lines
1.1 KiB
Bash
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=('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
|
|
}
|