diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-26 09:09:00 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-26 09:09:00 +0000 |
commit | d718403aebb2e68c5271c75469a23f671b321fb0 (patch) | |
tree | fe53df848e93e11d34355416e46dc4fdf0e2c173 /main | |
parent | 8392f5d75bd9861f039d5ae6773c226d540b773f (diff) | |
download | aports-d718403aebb2e68c5271c75469a23f671b321fb0.tar.bz2 aports-d718403aebb2e68c5271c75469a23f671b321fb0.tar.xz |
testing/perl-ldap: move to main
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-ldap/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/perl-ldap/APKBUILD b/main/perl-ldap/APKBUILD new file mode 100644 index 000000000..1f5bc68b4 --- /dev/null +++ b/main/perl-ldap/APKBUILD @@ -0,0 +1,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.56 +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" +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="4ea517a844bad34b79f05afcfd24cc05 perl-ldap-0.56.tar.gz" +sha256sums="bf92c5931399b2a57c7bbec7a7a02d5d7796ecff889a2f56a436592eb5d54ef7 perl-ldap-0.56.tar.gz" +sha512sums="444c87dc47a506a8c97471e08889efd1e78c55c464d8cf17280a9b4d4d8cf840485f5c535823554c156bfa411f753d3ae8e89736d722989137ffd3fa23a45c8c perl-ldap-0.56.tar.gz" |