summaryrefslogtreecommitdiff
path: root/pcr/perl-text-roman/PKGBUILD
blob: 0fd19b46acf33e0a9179954e0f095488ddf9c7a1 (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: asm <asm@member.fsf.org>

pkgname=perl-text-roman
pkgver=3.5
pkgrel=2
pkgdesc="Allows conversion between Roman and Arabic algarisms"
_dist=Text-Roman
arch=('any')
url="http://search.cpan.org/dist/$_dist"
license=('GPL1')
options=('!emptydirs')
depends=('perl')
source=("http://search.cpan.org/CPAN/authors/id/S/SY/SYP/$_dist-$pkgver.tar.gz")
sha512sums=('597ca054094f58c0983c66ce2b22dbc4d69861b02495663987e6b66dc0044a0d7e18e51ef817ed3c76832d283c01c6f9f51e68af7cb6b186b27553b5a877bc33')

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"
}