diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-14 03:14:07 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-14 03:14:07 -0500 |
commit | 47ad7464973a9111c090e8a9dd512ce63a6a66de (patch) | |
tree | fb95989dfed0aa968dc110c716c2f8852923425d /user/digikam/APKBUILD | |
parent | 9ba156458fe3cb82b5b9172fbfcb5a60644074b3 (diff) | |
download | packages-47ad7464973a9111c090e8a9dd512ce63a6a66de.tar.gz packages-47ad7464973a9111c090e8a9dd512ce63a6a66de.tar.bz2 packages-47ad7464973a9111c090e8a9dd512ce63a6a66de.tar.xz packages-47ad7464973a9111c090e8a9dd512ce63a6a66de.zip |
user/digikam: new package
Diffstat (limited to 'user/digikam/APKBUILD')
-rw-r--r-- | user/digikam/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/user/digikam/APKBUILD b/user/digikam/APKBUILD new file mode 100644 index 000000000..caa015a9d --- /dev/null +++ b/user/digikam/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=digikam +pkgver=5.8.0 +pkgrel=0 +pkgdesc="Professional photo management and digital camera import" +url="https://www.digikam.org/" +arch="all" +options="!check" # Test suite doesn't support our version of Boost +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 kcalcore-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" +# YES, both are needed. opencv-dev only pulls in -libs; CMake module in opencv +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="https://download.kde.org/stable/digikam/digikam-$pkgver.tar.xz" +builddir="$srcdir/digikam-$pkgver" + +build() { + cd "$builddir" + 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_MYSQLSUPPORT=OFF \ + -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \ + -DENABLE_OPENCV3=ON \ + -DBUILD_TESTING=OFF \ + ${CMAKE_CROSSOPTS} + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="f4b33fce0d5ef1e7032d3bb023b3037327c105fb3dd25f9a84f432e28b3a92c9904bbc33bba2066d766ea02721d5634dc643d7cc0c990ccf2285a0c697278b6c digikam-5.8.0.tar.xz" |