summaryrefslogblamecommitdiff
path: root/user/kdegraphics-thumbnailers/APKBUILD
blob: fe5d9ac88caac5dbd01470b5a4f113d778dcb931 (plain) (tree)
1
2
3
4


                                                  
              




































                                                                                                         
                                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kdegraphics-thumbnailers
pkgver=19.08.0
pkgrel=0
pkgdesc="KDE thumbnailing sofware"
url="https://www.KDE.org/"
arch="all"
license="GPL-2.0-only AND LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kio-dev libkdcraw-dev
	libkexiv2-dev"
subpackages=""
source="https://download.kde.org/stable/applications/$pkgver/src/kdegraphics-thumbnailers-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="7eb27cc6132a80e25be61fa87d70157f6863424aa9586886e51969a0c1d089c0c6558c6ccb7cea6c6f1182cc720cfc46802120cdfc5253318f5dc8633a78c982  kdegraphics-thumbnailers-19.08.0.tar.xz"