mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
main/perl-authen-sasl: fix build, modernize and add check
Addd perl-module-install as a make dependency
This commit is contained in:
parent
c4ef2df31b
commit
d37708d2ba
@ -2,23 +2,34 @@
|
||||
pkgname=perl-authen-sasl
|
||||
_realname=Authen-SASL
|
||||
pkgver=2.16
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="SASL Authentication framework for perl"
|
||||
url="http://search.cpan.org/dist/Authen-SASL/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
depends="perl perl-digest-hmac"
|
||||
makedepends="perl-dev"
|
||||
makedepends="perl-dev perl-module-install"
|
||||
install=
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Authen-SASL-$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_realname-$pkgver"
|
||||
builddir="$srcdir/$_realname-$pkgver"
|
||||
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
|
||||
make || return 1
|
||||
build() {
|
||||
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
|
||||
|
||||
# creates file collision among perl modules
|
||||
find "$pkgdir" -name perllocal.pod -delete
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user