aboutsummaryrefslogtreecommitdiffstats
path: root/community/kimageformats/APKBUILD
blob: 39a2fd2ea6c737d07280ce43e1e9792b1fd3faa6 (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
33
34
35
36
37
38
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kimageformats
pkgver=5.78.0
pkgrel=0
pkgdesc="Image format plugins for Qt5"
# armhf blocked by extra-cmake-modules
# mips64 blocked by openexr
arch="all !armhf !mips64"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later"
makedepends="
	extra-cmake-modules
	karchive-dev
	libavif-dev
	openexr-dev
	qt5-qtbase-dev
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kimageformats-$pkgver.tar.xz"

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 xvfb-run ctest -E "kimageformats-read-psd"
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="cd06c63794ecfdf52863293b48a939c54ce58fdf4b0e84e629652d9e656a17c8e5fd3428aa7b3e741130bebcc968ba7d8d7f198fa2d01ebb297ab9bc1121ea4d  kimageformats-5.78.0.tar.xz"