summaryrefslogblamecommitdiff
path: root/user/libkipi/APKBUILD
blob: f8fc34da0a00b593294c576fdfa06a00c1680e3e (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=18.12.3
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/applications/$pkgver/src/libkipi-$pkgver.tar.xz"

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

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

sha512sums="85597e17c40c959416d81804a3d01ac7acc2fdb9706db82e28aab1e302511238e4861dae7cd23a08f2900df7d3ba8e506ade689f89d5e8949e6cc8378492430c  libkipi-18.12.3.tar.xz"