blob: 170d2887426e6f2db776d80d170cb6db3823f245 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
_pkgname=kdiff3
pkgname=${_pkgname}-git
pkgver=1.12.70.r3124.6ab20841
pkgrel=1
pkgdesc='A KDE file comparator/merge tool'
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url='https://invent.kde.org/sdk/kdiff3'
license=('GPLv2')
depends=('kparts' 'hicolor-icon-theme')
provides=(kdiff3)
conflicts=("${_pkgname}")
makedepends=('cmake' 'extra-cmake-modules' 'git' 'kdoctools' 'boost')
source=("git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir:?}/${_pkgname}"
ver=$(grep -Po 'project\(kdiff3 VERSION \K([0-9.]+)' CMakeLists.txt)
printf '%s.r%s.%s' "${ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p "${srcdir:?}/build"
cd "${srcdir}/build"
cmake "${srcdir}/${_pkgname}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSYSCONF_INSTALL_DIR=/etc \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
}
build() {
cd "${srcdir}/build"
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir:?}" install
}
|