aboutsummaryrefslogtreecommitdiffstats
path: root/community/ksanecore/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ksanecore/APKBUILD')
-rw-r--r--community/ksanecore/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/ksanecore/APKBUILD b/community/ksanecore/APKBUILD
new file mode 100644
index 00000000000..ba9da6105af
--- /dev/null
+++ b/community/ksanecore/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: 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-applications
+pkgname=ksanecore
+pkgver=24.02.1
+pkgrel=0
+# armhf blocked by extra-cmake-modules
+arch="all !armhf"
+url="https://www.kde.org/applications/graphics/"
+pkgdesc="Library providing logic to interface scanners"
+license="BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND (LGPL-2.1-only OR LGPL-3.0-only) AND LicenseRef-KDE-Accepted-LGPL"
+depends_dev="
+ ki18n-dev
+ qt6-qtbase-dev
+ sane-dev
+ "
+makedepends="$depends_dev
+ extra-cmake-modules
+ samurai
+ "
+subpackages="$pkgname-dev $pkgname-lang"
+_repo_url="https://invent.kde.org/libraries/ksanecore.git"
+source="https://download.kde.org/stable/release-service/$pkgver/src/ksanecore-$pkgver.tar.xz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DBUILD_WITH_QT6=ON \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_TESTING=ON
+ cmake --build build
+}
+
+check() {
+ ctest --test-dir build --output-on-failure
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+cbcca4ed12b48a772a343f69b3760352f1813b124ff06fe9cd225046d09f14a9db23960561c8fa8aa23fbbcb6f3f5d573cf847f94dd05a56f7c795f2c034b47f ksanecore-24.02.1.tar.xz
+"