aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-22 00:17:24 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-03-22 04:52:43 +0000
commit5f819cab2311ed4d290b6d626e3922e930e718e2 (patch)
tree47fc278dbf1a348dc6da10427fad98629cb74b95
parent95cd8861162bb014de67297d529264a9c8c0d763 (diff)
downloadaports-5f819cab2311ed4d290b6d626e3922e930e718e2.tar.gz
aports-5f819cab2311ed4d290b6d626e3922e930e718e2.tar.bz2
aports-5f819cab2311ed4d290b6d626e3922e930e718e2.tar.xz
main/perl-ldap and modernize APKBUILD
-rw-r--r--main/perl-ldap/APKBUILD37
1 files changed, 15 insertions, 22 deletions
diff --git a/main/perl-ldap/APKBUILD b/main/perl-ldap/APKBUILD
index 813d9cacca..ca6adf6a94 100644
--- a/main/perl-ldap/APKBUILD
+++ b/main/perl-ldap/APKBUILD
@@ -1,43 +1,36 @@
-# Automatically generated by apkbuild-cpan, template 1
+# 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.66
-pkgrel=1
+pkgrel=2
pkgdesc="LDAP client library"
+provides="perl-net-ldap"
+replaces="perl-net-ldap"
url="https://metacpan.org/release/perl-ldap/"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends="perl-convert-asn1"
-cpanmakedepends=""
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends perl-text-soundex perl-module-install"
-replaces="perl-net-ldap"
-provides="perl-net-ldap"
+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/$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
-}
+source="https://cpan.metacpan.org/authors/id/M/MA/MARSCHAP/perl-ldap-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}