blob: 817159c8e71d54e422b728c8c957e78400806db0 (
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
|
# Maintainer: Strykar <strykar@hotmail.com>
pkgname=perl-pod-usage
pkgver=2.03
pkgrel=1
pkgdesc='Perl module for displaying usage messages for Perl scripts'
url="https://metacpan.org/pod/Pod::Usage"
license=('Artistic-1.0-Perl')
depends=('perl')
makedepends=('perl-module-build')
arch=('any')
source=("https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Usage-${pkgver}.tar.gz")
sha256sums=('7d8fdc7dce60087b6cf9e493b8d6ae84a5ab4c0608a806a6d395cc6557460744')
options=('!emptydirs' 'purge')
build() {
cd "Pod-Usage-${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 "Pod-Usage-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "Pod-Usage-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|