summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fec71dd4e2f6f15c286a629bc1805b9bd91f677 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=libkexiv2-git
pkgver=22.03.80.r0.gd8dbd19
pkgrel=1
pkgdesc='A library to manipulate pictures metadata'
arch=('x86_64')
url='https://invent.kde.org/graphics/libkexiv2'
license=('GPL' 'LGPL' 'FDL')
depends=('qt5-base' 'exiv2')
makedepends=('git' 'extra-cmake-modules' 'kdoctools')
provides=("libkexiv2=${pkgver%.r*}")
conflicts=('libkexiv2')
groups=('digikamsc-git')
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	git -C "$pkgname" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
	cmake \
		-B build \
		-S "$pkgname" \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLIB_INSTALL_DIR=lib \
		-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
		-DBUILD_TESTING=OFF \
		-Wno-dev
	make -C build
}

package() {
	make -C build install DESTDIR="$pkgdir/"
}