diff options
Diffstat (limited to 'pcr/perl-regexp-common')
-rw-r--r-- | pcr/perl-regexp-common/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/perl-regexp-common/PKGBUILD b/pcr/perl-regexp-common/PKGBUILD new file mode 100644 index 000000000..f8c4dfc1c --- /dev/null +++ b/pcr/perl-regexp-common/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): Jason St. John <jstjohn .. purdue . edu> +# Contributor (Arch): Caleb Cushing <xenoterracide@gmail.com> +# Contributor : Márcio Silva <coadde@parabola.nu> + +_perlmod=Regexp-Common +_modnamespace=Regexp +pkgname=perl-regexp-common +pkgver=2013031301 +pkgrel=4 +pkgdesc="Regexp::Common - Provides commonly requested regular expressions" +arch=('any') +url="http://search.cpan.org/dist/${_perlmod}" +license=('MIT') +options=('!emptydirs') +source=("http://cpan.org/modules/by-module/${_modnamespace}/${_perlmod}-${pkgver}.tar.gz") +sha512sums=('2fad761c169be76771856938a53f28dab232cb44cea4e22f56869754633f9a38f94568096ac0f21a885e6dd11049f401c8957b04929eee6802b8454c4fe4f62a') + +build() { + cd "${_perlmod}-${pkgver}" + + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${_perlmod}-${pkgver}" + make test +} + +package() { + cd "${_perlmod}-${pkgver}" + make install DESTDIR="${pkgdir}" +} |