summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c98dcd14de3a05b9efda297f2594b9c0b8f4018 (plain)
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
# Maintainer: Maarten de Vries <maarten@de-vri.es>

pkgname=ldapxx
pkgdesc="C++ interface to ldap.h"
url="https://github.com/de-vri-es/ldapxx"
pkgver=0.1.5
pkgrel=1
depends=(libldap boost)
arch=(x86_64 i386)
license=(BSD)

source=("$pkgname-$pkgver.tar.gz::https://github.com/de-vri-es/ldapxx/archive/$pkgver.tar.gz")
sha512sums=('c73e9357a97c24996b814fa25e1dc65b7e098ce947568550a73082ca744e4611f285ed0739e19dac31377d9ccc850682f1af8efcbd04078ea98604864ebdae5a')

prepare() {
	rm -rf "$srcdir/build"
	mkdir -p "$srcdir/build"
	cd "$srcdir/build"
	cmake "$srcdir/$pkgname-$pkgver" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release
}

build() {
	cd "$srcdir/build"
	make
}

package() {
	cd "$srcdir/build"
	make install DESTDIR="$pkgdir"
	install -m644 -Dt "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/$pkgname-$pkgver/LICENSE"
}