blob: 1c09f935154e57290e0d917a95488e00ed9ae2a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
pkgname=perl-perlio-via-gzip
_dist=PerlIO-via-gzip
pkgver=0.03
pkgrel=2
pkgdesc="Perl extension PerlIO::via::gzip"
arch=('any')
url='https://metacpan.org/pod/PerlIO::via::gzip'
license=('PerlArtistic' 'GPL')
depends=('perl' 'zlib')
makedepends=(perl-module-build)
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/M/MA/MAJENSEN/${_dist}-${pkgver}.tar.gz")
sha256sums=('b4c101ea2c2d7219f8880e51d3962384aafbc30cb0871ef9dbd57c09f17d4d8b')
build() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
/usr/bin/perl Build.PL
./Build
}
check() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
./Build test
}
package() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
./Build install --installdirs=vendor --destdir="$pkgdir"
}
|