mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
main/perl-ldap: add missing make dependency and modernize
This commit is contained in:
parent
5b4fc48d93
commit
047f04b183
@ -3,40 +3,43 @@
|
|||||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||||
pkgname=perl-ldap
|
pkgname=perl-ldap
|
||||||
pkgver=0.65
|
pkgver=0.65
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="LDAP client library"
|
pkgdesc="LDAP client library"
|
||||||
url="http://search.cpan.org/dist/perl-ldap/"
|
url="http://search.cpan.org/dist/perl-ldap/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL PerlArtistic"
|
license="GPL PerlArtistic"
|
||||||
cpandepends="perl-convert-asn1"
|
cpandepends="perl-convert-asn1"
|
||||||
cpanmakedepends=" "
|
cpanmakedepends=""
|
||||||
depends="$cpandepends"
|
depends="$cpandepends"
|
||||||
makedepends="perl-dev $cpanmakedepends perl-text-soundex"
|
makedepends="perl-dev $cpanmakedepends perl-text-soundex perl-module-install"
|
||||||
replaces="perl-net-ldap"
|
replaces="perl-net-ldap"
|
||||||
provides="perl-net-ldap"
|
provides="perl-net-ldap"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/$pkgname-$pkgver.tar.gz"
|
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/$pkgname-$pkgver.tar.gz"
|
||||||
|
|
||||||
_builddir="$srcdir/$pkgname-$pkgver"
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
make && make test
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
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"
|
sha512sums="567de41fc1e659de23b4ae7b6cec5a60df0ad8bc90062158cf83f90d3729ac27a8bacb276b732931fefbf33847fe1baec7a62393aae5978f3c55c6c602f93747 perl-ldap-0.65.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user