# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=prison pkgver=5.76.0 pkgrel=0 pkgdesc="A barcode API to produce QRCode barcodes and DataMatrix barcodes" arch="all !armhf" # armhf blocked by qt5-qtdeclarative url="https://community.kde.org/Frameworks" license="MIT" depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev libdmtx-dev" makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev libqrencode-dev" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/prison-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="7f5824c1c0e1e0d9588c0f9781b4921844c2bd5c2a7807098c993f58c2b27ab6c3d58a5dc69e9162f22e7bd169de07c7e0521a9056c6af5f0fc3e96eb834a87a prison-5.76.0.tar.xz"