summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD50
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8e0b52dda9f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = perl-yape-regex
+ pkgdesc = YAPE::Regex - Yet Another Parser/Extractor for Regular Expressions
+ pkgver = 4.00
+ pkgrel = 2
+ url = http://search.cpan.org/~gsullivan/YAPE-Regex/
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ makedepends = perl
+ depends = perl
+ provides = perl-yape-regex-element
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/G/GS/GSULLIVAN/YAPE-Regex-4.00.tar.gz
+ md5sums = df98f5d4b0cdf34736ecf5813b3d0dfc
+
+pkgname = perl-yape-regex
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..34095fd7cd0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
+
+_author=G/GS/GSULLIVAN
+_perlmod=YAPE-Regex
+pkgname=perl-yape-regex
+pkgver=4.00
+pkgrel=2
+pkgdesc='YAPE::Regex - Yet Another Parser/Extractor for Regular Expressions'
+arch=('any')
+url="http://search.cpan.org/~gsullivan/YAPE-Regex/"
+license=('GPL' 'PerlArtistic')
+groups=()
+depends=(
+perl
+)
+makedepends=(
+perl
+)
+optdepends=()
+provides=(
+perl-yape-regex-element
+)
+conflicts=()
+replaces=()
+backup=()
+options=(!emptydirs)
+install=
+source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+noextract=()
+
+build(){
+ cd "$srcdir/$_perlmod-$pkgver"
+
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+check(){
+ cd "$srcdir/$_perlmod-$pkgver"
+ make test
+}
+package(){
+ cd "$srcdir/$_perlmod-$pkgver"
+ make install DESTDIR="$pkgdir/"
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+md5sums=('df98f5d4b0cdf34736ecf5813b3d0dfc')