aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-ldap/APKBUILD
blob: 2e6fd84ff9f800fdbb3c46ea40e3772530bf6364 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-ldap
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=perl-ldap
pkgver=0.68
pkgrel=0
pkgdesc="LDAP client library"
provides="perl-net-ldap"
replaces="perl-net-ldap"
url="https://metacpan.org/release/perl-ldap/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-libwww perl-lwp-mediatypes perl-json perl-convert-asn1
	perl-http-message perl-uri perl-http-negotiate perl-io-socket-ssl"
makedepends="perl-dev"
checkdepends="perl-text-soundex"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MARSCHAP/perl-ldap-$pkgver.tar.gz"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="9b6260ac997c3279585745571f7d825aac956f157aef5715f13efb118723379aa9c838fdc123e2932047b28b38ebc2261ebe82ae1ef6a1f383b775d748ff18c6  perl-ldap-0.68.tar.gz"