summaryrefslogblamecommitdiff
path: root/user/libkipi/APKBUILD
blob: 8db625f4932b8f17bea5bbb1562e99013227af60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
              






                                            

                                                                
                          
                                                                                           

         










                                                                                          
                                    



            


                                      
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libkipi
pkgver=19.12.1
pkgrel=0
pkgdesc="KDE Image Plugin Interface library"
url="https://www.digikam.org/"
arch="all"
options="!check"  # Tests fail to compile.
license="GPL-2.0+ AND LGPL-2.0+"
depends=""
depends_dev="qt5-qtbase-dev kxmlgui-dev kservice-dev"
makedepends="$depends_dev cmake extra-cmake-modules kconfig-dev"
subpackages="$pkgname-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkipi-$pkgver.tar.xz"

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" \
		-DBUILD_TESTING=OFF \
		${CMAKE_CROSSOPTS} .
	make
}

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

sha512sums="8cf859361bb84a3fd6dd2cbbcbfdb6f7600826d20cd2cb3ea36abf86574b5bc40ccef833e2628ea75b54a93252d5bd12b14a8f469dc1788f9a0a86cd8e925698  libkipi-19.12.1.tar.xz"