diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | PKGBUILD.tt | 28 |
3 files changed, 38 insertions, 23 deletions
@@ -1,11 +1,10 @@ pkgbase = perl-class-insideout pkgdesc = Perl module for safe and simple inside-out objects construction pkgver = 1.14 - pkgrel = 1 + pkgrel = 2 url = https://metacpan.org/release/Class-InsideOut arch = any license = Apache - depends = perl depends = perl-class-isa options = !emptydirs source = http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Class-InsideOut-1.14.tar.gz @@ -4,29 +4,37 @@ pkgname=perl-class-insideout pkgver=1.14 -pkgrel=1 +pkgrel=2 pkgdesc='Perl module for safe and simple inside-out objects construction' arch=('any') -url="https://metacpan.org/release/Class-InsideOut" +url='https://metacpan.org/release/Class-InsideOut' license=('Apache') -depends=("perl" "perl-class-isa") +depends=('perl-class-isa') options=(!emptydirs) source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Class-InsideOut-1.14.tar.gz) md5sums=('cf9fe58eec6f61c6e483c75479e4a367') +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" +} + build() { - cd "$srcdir/Class-InsideOut-1.14" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor - make + cd Class-InsideOut-1.14 + sanitize + perl Makefile.PL INSTALLDIRS=vendor + make } check() { - cd "$srcdir/Class-InsideOut-1.14" - make test + cd Class-InsideOut-1.14 + sanitize + make test } package() { - cd "$srcdir/Class-InsideOut-1.14" - make install DESTDIR="$pkgdir" - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + cd Class-InsideOut-1.14 + sanitize + make install DESTDIR="$pkgdir" + find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete } diff --git a/PKGBUILD.tt b/PKGBUILD.tt index 7de72758ed29..955eb67dbb01 100644 --- a/PKGBUILD.tt +++ b/PKGBUILD.tt @@ -7,26 +7,34 @@ pkgver=[% pkgver %] pkgrel=[% pkgrel %] pkgdesc='Perl module for safe and simple inside-out objects construction' arch=('any') -url="[% url %]" +url='[% url %]' license=('Apache') -depends=("perl" "perl-class-isa") +depends=('perl-class-isa') options=(!emptydirs) source=([% source %]) md5sums=('[% md5sums %]') +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" +} + build() { - cd "$srcdir/[% distdir %]" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor - make + cd [% distdir %] + sanitize + perl Makefile.PL INSTALLDIRS=vendor + make } check() { - cd "$srcdir/[% distdir %]" - make test + cd [% distdir %] + sanitize + make test } package() { - cd "$srcdir/[% distdir %]" - make install DESTDIR="$pkgdir" - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + cd [% distdir %] + sanitize + make install DESTDIR="$pkgdir" + find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete } |