aports/community/kphotoalbum/APKBUILD
2025-03-16 04:38:28 +00:00

61 lines
1.5 KiB
Text

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-other
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kphotoalbum
pkgver=6.0.1
pkgrel=0
pkgdesc="KDE Photo Album, picture collection manager"
url="https://kphotoalbum.org"
# armhf, ppc64le, s390x and riscv64 blocked by qt6-qtwebengine -> purpose
arch="all !armhf !ppc64le !s390x !riscv64"
license="GPL-2.0-or-later"
makedepends="
exiv2-dev
extra-cmake-modules
jpeg-dev
karchive-dev
kcompletion-dev
kconfig-dev
kcoreaddons-dev
kdoctools-dev
ki18n-dev
kiconthemes-dev
kio-dev
kjobwidgets-dev
ktextwidgets-dev
kwidgetsaddons-dev
kxmlgui-dev
libkdcraw-dev
marble-dev
phonon-dev
purpose-dev
qt6-qtbase-dev
samurai
"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/graphics/kphotoalbum.git"
source="https://download.kde.org/stable/kphotoalbum/$pkgver/kphotoalbum-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
case "$CARCH" in
x86|armv7) xvfb-run -a ctest --test-dir build -E "TestThumbnailCache" ;;
*) xvfb-run -a ctest --test-dir build ;;
esac
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
9d0a9e45f32da3f129688b575021a6fff2dd6c0cdb0f8b8c479c33d5243f251d0598e331b8029a9e95d442a9b63cae8a43f2e1232a82b6c6a86daa5d0d6e7690 kphotoalbum-6.0.1.tar.xz
"