# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=prison pkgver=5.89.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 # prison-datamatrixtest and prison-qrtest are broken on s390x case "$CARCH" in s390x) CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "prison-(datamatrix|qr)test" ;; *) CTEST_OUTPUT_ON_FAILURE=TRUE ctest ;; esac } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6d7dbec835301ee38aa33971266a48f37c67e7cc5274669b09a23e0830222d1f7e1a6bce6e7e126d119a483a44a1302bf508a690943ff4b905a70dd22f432e0f prison-5.89.0.tar.xz "