main/perl-ldap: add missing make dependency and modernize

This commit is contained in:
Roberto Oliveira 2017-11-11 11:57:25 +00:00 committed by Carlo Landmeter
parent 5b4fc48d93
commit 047f04b183

View File

@ -3,40 +3,43 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-ldap
pkgver=0.65
pkgrel=0
pkgrel=1
pkgdesc="LDAP client library"
url="http://search.cpan.org/dist/perl-ldap/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-convert-asn1"
cpanmakedepends=" "
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-text-soundex"
makedepends="perl-dev $cpanmakedepends perl-text-soundex perl-module-install"
replaces="perl-net-ldap"
provides="perl-net-ldap"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="d057c8db76913d95c0e460c7bdd98b27 perl-ldap-0.65.tar.gz"
sha256sums="5f57dd261dc16ebf942a272ddafe69526598df71151a51916edc37a4f2f23834 perl-ldap-0.65.tar.gz"
sha512sums="567de41fc1e659de23b4ae7b6cec5a60df0ad8bc90062158cf83f90d3729ac27a8bacb276b732931fefbf33847fe1baec7a62393aae5978f3c55c6c602f93747 perl-ldap-0.65.tar.gz"