main/perl-authen-sasl: fix build, modernize and add check

Addd perl-module-install as a make dependency
This commit is contained in:
Roberto Oliveira 2017-11-10 10:38:09 +00:00 committed by Carlo Landmeter
parent c4ef2df31b
commit d37708d2ba

View File

@ -2,23 +2,34 @@
pkgname=perl-authen-sasl pkgname=perl-authen-sasl
_realname=Authen-SASL _realname=Authen-SASL
pkgver=2.16 pkgver=2.16
pkgrel=0 pkgrel=1
pkgdesc="SASL Authentication framework for perl" pkgdesc="SASL Authentication framework for perl"
url="http://search.cpan.org/dist/Authen-SASL/" url="http://search.cpan.org/dist/Authen-SASL/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
depends="perl perl-digest-hmac" depends="perl perl-digest-hmac"
makedepends="perl-dev" makedepends="perl-dev perl-module-install"
install= install=
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Authen-SASL-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Authen-SASL-$pkgver.tar.gz"
build() { builddir="$srcdir/$_realname-$pkgver"
cd "$srcdir/$_realname-$pkgver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 build() {
make || return 1 cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
# creates file collision among perl modules # creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete find "$pkgdir" -name perllocal.pod -delete
} }