aboutsummaryrefslogtreecommitdiffstats
path: root/community/digikam/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/digikam/APKBUILD')
-rw-r--r--community/digikam/APKBUILD92
1 files changed, 92 insertions, 0 deletions
diff --git a/community/digikam/APKBUILD b/community/digikam/APKBUILD
new file mode 100644
index 00000000000..defbb6bd01e
--- /dev/null
+++ b/community/digikam/APKBUILD
@@ -0,0 +1,92 @@
+# 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-other
+pkgname=digikam
+pkgver=8.3.0
+pkgrel=1
+pkgdesc="An advanced open-source digital photo management application"
+url="https://www.digikam.org/"
+# armhf blocked by extra-cmake-modules
+# riscv64, ppc64le and s390 blocked by akonadi-contacts, marble and opencv
+arch="all !armhf !ppc64le !s390x !riscv64"
+license="LGPL-2.1-or-later AND GPL-2.0-or-later"
+makedepends="
+ akonadi-contacts-dev
+ bison
+ boost-dev
+ doxygen
+ eigen-dev
+ exiv2-dev
+ expat-dev
+ extra-cmake-modules
+ flex
+ gettext
+ graphviz
+ imagemagick-dev
+ jasper-dev
+ kcalendarcore5-dev
+ kdoctools5-dev
+ kfilemetadata5-dev
+ lcms2-dev
+ lensfun-dev
+ libgphoto2-dev
+ libheif-dev
+ libksane-dev
+ libpng-dev
+ libxml2-dev
+ libxslt-dev
+ marble-dev
+ opencv-dev
+ qt5-qtmultimedia-dev
+ qt5-qtnetworkauth-dev
+ qt5-qtxmlpatterns-dev
+ samurai
+ tiff-dev
+ x265-dev
+ "
+checkdepends="xvfb-run"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+_repo_url="https://invent.kde.org/graphics/digikam.git"
+source="https://download.kde.org/stable/digikam/$pkgver/digiKam-$pkgver-1.tar.xz"
+options="net" # needed for test data (todo)
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build build
+}
+
+check() {
+ local tests="
+ albums
+ digikam-advancedrename
+ digikam-detectblur
+ digikam-dimghistorygraph
+ digikam-printmetadata
+ digikam-queryrevision
+ digikam-setiptcpreview
+ digikam-tagsreadwrite
+ digikam-timestampupdate
+ frequentrequests
+ photos
+ userinfo
+ "
+ local skipped_tests="("
+ for test in $tests; do
+ skipped_tests="$skipped_tests|$test"
+ done
+ skipped_tests="$skipped_tests)_utest"
+ xvfb-run -a ctest --test-dir build --output-on-failure -E "$skipped_tests"
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+c2fdcecafa68641f08b31286d1b9c44828164a0a0bea607fb64a71c73ff53417cdfefa110245adab164fae8ea0980ea86cd69d693dcd43a96bb188197dc78fcd digiKam-8.3.0-1.tar.xz
+"