aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-text-parsewords/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/perl-text-parsewords/APKBUILD')
-rw-r--r--unmaintained/perl-text-parsewords/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/unmaintained/perl-text-parsewords/APKBUILD b/unmaintained/perl-text-parsewords/APKBUILD
new file mode 100644
index 0000000000..28a6dcd475
--- /dev/null
+++ b/unmaintained/perl-text-parsewords/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-text-parsewords
+_pkgreal=Text-ParseWords
+pkgver=3.27
+pkgrel=0
+pkgdesc="Perl module for Text-ParseWords"
+url="http://search.cpan.org/dist/Text-ParseWords/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/$_pkgreal-$pkgver.zip"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ if [ -e Build.PL ]; then
+ perl Build.PL installdirs=vendor || return 1
+ else
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ fi
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+
+md5sums="620fee5eece9b8d4a7a68e91fe617097 Text-ParseWords-3.27.zip"