diff options
Diffstat (limited to 'community/prison/APKBUILD')
-rw-r--r-- | community/prison/APKBUILD | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/community/prison/APKBUILD b/community/prison/APKBUILD index e2cd2306800..b3abf369628 100644 --- a/community/prison/APKBUILD +++ b/community/prison/APKBUILD @@ -1,20 +1,36 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> -# Maintainer: Bart Ribbers <bribbers@disroot.org> +# Maintainer: team/kde <bribbers@disroot.org> + +# The group tag is just to easily find this APKBUILD by some scripts for automation +# group=kde-frameworks pkgname=prison -pkgver=5.84.0 +pkgver=6.1.0 pkgrel=0 pkgdesc="A barcode API to produce QRCode barcodes and DataMatrix barcodes" -arch="all !armhf" # armhf blocked by qt5-qtdeclarative +arch="all !armhf" # armhf blocked by qt6-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" +depends_dev=" + libdmtx-dev + qt6-qtbase-dev + qt6-qtdeclarative-dev + qt6-qtmultimedia-dev + zxing-cpp-dev + " +makedepends="$depends_dev + doxygen + extra-cmake-modules + libqrencode-dev + qt6-qttools-dev + samurai + " subpackages="$pkgname-dev $pkgname-doc" +_repo_url="https://invent.kde.org/frameworks/prison.git" +source="https://download.kde.org/stable/frameworks/${pkgver%.*}/prison-$pkgver.tar.xz" build() { - cmake -B build \ - -DCMAKE_BUILD_TYPE=None \ + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON @@ -22,13 +38,17 @@ build() { } check() { - cd build - CTEST_OUTPUT_ON_FAILURE=TRUE ctest + # prison-datamatrixtest and prison-qrtest are broken on s390x + case "$CARCH" in + s390x) ctest --test-dir build --output-on-failure -E "prison-(datamatrix|qr)test" ;; + *) ctest --test-dir build --output-on-failure ;; + esac } package() { - DESTDIR="$pkgdir" cmake --build build --target install + DESTDIR="$pkgdir" cmake --install build } + sha512sums=" -2507c9edd20c2e6f9ea1d7b8ab64c74876dd20af29fd631420ac83ea837007db9737acccb1a127e88cdc1b728c4465bdff85ddac4087b13b08c59fa93ab57a0e prison-5.84.0.tar.xz +4111b286b4d61b37c2a2127b2a78fea7c44a9282db17c4635c13f61217782485b919519fd50a82314f33c6a155897c6a238278bba09797fa03eb54da4e4c3887 prison-6.1.0.tar.xz " |