aboutsummaryrefslogtreecommitdiffstats
path: root/main/ldapvi/APKBUILD
blob: f049594113009ef1bc69905242b4fa3944253e03 (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=ldapvi
pkgver=1.7
pkgrel=11
pkgdesc="ldapvi is an interactive LDAP client for Unix terminals"
url="http://www.lichteblau.com/ldapvi/"
arch="all"
license="GPL"
depends=""
makedepends="ncurses-dev openldap-dev popt-dev readline-dev glib-dev"
subpackages="$pkgname-doc"
source="http://www.lichteblau.com/download/${pkgname}-${pkgver}.tar.gz
	GNUmakefile.in.diff
	ldapvi_vim_modeline_fix.patch
	ldapvi_getline.patch"
builddir="$srcdir/${pkgname}-${pkgver}"

prepare() {
	cd "$builddir"
	patch -Np0 -i "$srcdir"/GNUmakefile.in.diff || return 1

	default_prepare  # apply patches
}

build() {
	cd "$builddir"
	./configure --prefix=/usr && make
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/doc/ldapvi" \
		"$pkgdir/usr/share/man/man1"
	make DESTDIR="$pkgdir" MANDIR="$pkgdir"/usr/share/man/man1 \
		DOCDIR="$pkgdir/usr/share/doc/ldapvi" install || return 1
}

sha512sums="4b38cee0763aa33703afbd5e358a458b1468abf58e43ea885879b2117bc1c0bbc375d91c6a43467ec08035b8b3b7dd4b024f2937c37741c7a5513ea9192aed36  ldapvi-1.7.tar.gz
f97bd3c285fc9f76970af7f82bb7adaca70e4bcad634c06b07171afbad6ef83526aca4b6840a66d78ed7cb9b9040a91756c860364f97c45561c88cc4f827fb02  GNUmakefile.in.diff
df070ac52c0046378909dada3c017d23f49a20ea36cbc6df349a830678acce7524266da191b47d8a6b6dd95a9a0399a0ce826e44766e44fba9e75d356cd69960  ldapvi_vim_modeline_fix.patch
34fd4ce7432a578ae5b3ec4c82a369410b5bda4daac4da70d7e176b49fed57f5e8a8bd5255a4dd348be9fc9f6a12c1d1adc2a9fd547cc8ea05b25dd9c66b8f28  ldapvi_getline.patch"