blob: f75406b301949ac22913de1b6355a67f2889ef0e (
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
36
37
|
# Maintainer: camb
pkgname=perl-test-lib
pkgver=0.003
pkgrel=1
pkgdesc='Use libraries from a t/lib directory'
_dist='Test-Lib'
arch=('any')
url="https://metacpan.org/release/$_dist"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.6')
options=('!emptydirs' purge)
source=("http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_dist-$pkgver.tar.gz")
md5sums=('ecdd194c01de50db318be960ad05fce6')
sha256sums=('d84b48d92567cba3d0afb1e8175aab836bfa8a838e19ac9080cabc2e3f9dc9f5')
sha512sums=('f7c8aca697d07fe05bac38c8dd509eed32ea5698d4d449af73106ba0b0a17e297396aa656097e8e1027c9254e890b1a5d9da75e62fa888ecd52d74caa5f7e718')
build() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
check() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|