aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-ldap/APKBUILD
blob: 970babef70583861ce0a8b0abb6a1071f9d6cba1 (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
35
36
37
38
39
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-ldap
pkgver=0.64
pkgrel=0
pkgdesc="LDAP client library"
url="http://search.cpan.org/dist/perl-ldap/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-convert-asn1"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-text-soundex"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="52da55c38bf937c0d4ccff5f182aefae  perl-ldap-0.64.tar.gz"
sha256sums="9d5d71714f6c969e3a3ef406c1fa276a96028781e8cf38decd9a42f344dbdcb6  perl-ldap-0.64.tar.gz"
sha512sums="5ec4fc96e573332f69fa5ae8220a360f60a0b51d9e1252f21092a37dd6c489ce4b28fc0889ec7005af88423698af2e7242f8b95c15fcc4e3bddbc669061b1bbe  perl-ldap-0.64.tar.gz"