summaryrefslogtreecommitdiff
path: root/user/digikam/APKBUILD
blob: e2b01ba40f48b121c92edf1529717e830cd92e61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=digikam
pkgver=7.6.0
pkgrel=1
pkgdesc="Professional photo management and digital camera import"
url="https://www.digikam.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtxmlpatterns-dev
	qt5-qtsvg-dev kconfig-dev kwindowsystem-dev kxmlgui-dev ki18n-dev
	karchive-dev kio-dev qt5-qtwebkit-dev kcoreaddons-dev kservice-dev
	solid-dev kiconthemes-dev kfilemetadata-dev threadweaver-dev libpng-dev
	knotifyconfig-dev knotifications-dev akonadi-contacts-dev x265-dev
	libjpeg-turbo-dev tiff-dev zlib-dev boost-dev lcms2-dev expat-dev
	exiv2-dev flex bison libxml2-dev libxslt-dev eigen-dev libgphoto2-dev
	libksane-dev libkipi-dev glu-dev qt5-qtx11extras-dev jasper-dev
	opencv opencv-dev imagemagick-dev kcalendarcore-dev marble-dev"
# YES, both are needed. opencv-dev only pulls in -libs; CMake module in opencv
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/digikam/$pkgver/digiKam-$pkgver.tar.xz
	backport.patch
	isdigit.patch
	"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DENABLE_APPSTYLES=ON \
		-DENABLE_FACESENGINE_DNN=OFF \
		-DENABLE_MYSQLSUPPORT=OFF \
		-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \
		-DBUILD_TESTING=OFF \
		-DENABLE_QWEBENGINE=OFF \
		-DCMAKE_CXX_STANDARD_LIBRARIES="-latomic" \
		${CMAKE_CROSSOPTS} .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="72cae1f36249687d2c82392b7d5bcede39364372f935a2d09ba561d0b7f51b6f9a1e6a83a8974616061a8200f3d997b96fb021a16323a2f30b404cf628188216  digiKam-7.6.0.tar.xz
44f33f77b327f384764d74aade0567560f2f8cf34f53a9391da42ade06b08d9edc858c8b48cb0f2677dce8fa195e31d866585ee287a49a765d3fd2f8d5ed3c41  backport.patch
691d65a1f8f48820380e98bc72059cb4fb4ac4ace96ae46a04e60f1bc778b1e01af6f7a8c0c2f9951b5597017bca830baea2e919a145b2635e3be468f8e81862  isdigit.patch"