aboutsummaryrefslogtreecommitdiffstats
path: root/community/kldap/APKBUILD
blob: 05ebd5ae6315965f975a3719385f839b0ad16ffc (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kldap
pkgver=20.12.2
pkgrel=0
pkgdesc="LDAP access API for KDE"
# armhf blocked by extra-cmake-modules
# s390x blocked by multiple KDE Frameworks
arch="all !armhf !s390x !mips64"
url="https://github.com/kde/kldap"
license="LGPL-2.0-or-later"
depends_dev="
	kcompletion-dev
	kdoctools-dev
	ki18n-dev
	kio-dev
	kwidgetsaddons-dev
	openldap-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	cyrus-sasl-dev
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kldap-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="8576fed449efcbe1a49b3d473807d4ab64d0a64a490ea60dfa8019e69a94ce3dbc555c302b8310714febe9c3bac0ed1d8bd0b1a4eaf3ae41d42505deb47bf099  kldap-20.12.2.tar.xz"