aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkdcraw/APKBUILD
blob: 00e9f83afdf2d774d6a6ac690b9cdb9052281073 (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkdcraw
pkgver=20.04.2
pkgrel=0
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://kde.org"
pkgdesc="RAW image file format support for KDE"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends_dev="qt5-qtbase-dev libraw-dev"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkdcraw-$pkgver.tar.xz"
subpackages="$pkgname-dev"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="938ca11e5cde85617c7bd7e4c4ad1a5fafc468323a7fa233c24832682af689d294db6cdb9b42b73b1e81a358ad717877a233ae8bcc5e4af39aa1f845d3273a13  libkdcraw-20.04.2.tar.xz"