diff options
author | Mark Grimes | 2015-10-12 12:00:00 -0400 |
---|---|---|
committer | Mark Grimes | 2015-10-12 12:00:00 -0400 |
commit | 1e65818ff75cc7b77e24bd450697b4f90101eca1 (patch) | |
tree | 873024dde099866a0f7fe09f7164af3701c8a95e | |
download | aur-1e65818ff75cc7b77e24bd450697b4f90101eca1.tar.gz |
Initial release
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..449dbd845f62 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-regexp-grammars + pkgdesc = Perl/CPAN Module Regexp::Grammars - Add grammatical parsing features to Perl regexes + pkgver = 1.042 + pkgrel = 1 + url = https://metacpan.org/module/Regexp-Grammars + arch = any + license = GPL + license = PerlArtistic + depends = perl>=5.10 + depends = perl-b-hooks-parser + options = !emptydirs + options = purge + source = https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/Regexp-Grammars-1.042.tar.gz + md5sums = e129c37fa2db6af707ba8b551f8ef118 + +pkgname = perl-regexp-grammars + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..af160642e750 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg/ +src/ +*.tar.gz +*.src.tar.gz +*.pkg.tar* +*.swp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c790cb1283ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Mark Grimes <mgrimes at peculier.com> + +pkgname=perl-regexp-grammars +pkgver=1.042 +pkgrel=1 +pkgdesc="Perl/CPAN Module Regexp::Grammars - Add grammatical parsing features to Perl regexes" +_dist=Regexp-Grammars +arch=('any') +url="https://metacpan.org/module/$_dist" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10' 'perl-b-hooks-parser') +options=('!emptydirs' purge) +source=(https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/$_dist-$pkgver.tar.gz) +md5sums=('e129c37fa2db6af707ba8b551f8ef118') + +# Setup environment to ensure installation in system perl and vender directory +clean_env() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null PERL_AUTOINSTALL=--skipdeps +} + +build() ( + cd "$srcdir/$_dist-$pkgver" + clean_env + /usr/bin/perl Makefile.PL + make +) + +check() ( + cd "$srcdir/$_dist-$pkgver" + clean_env + make test +) + +package() ( + cd "$srcdir/$_dist-$pkgver" + clean_env + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +) + |