aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-regexp-tr
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 13:55:45 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 13:55:45 +0000
commit634ff1de22f5b17daf1a530fce6c43bb0ba52ac4 (patch)
treeb88fd8214879205650f51aa18fea4c68d2de2c3d /community/perl-regexp-tr
parent23ade127c0883e630f18ed9f206f248e8b1a0b2f (diff)
downloadaports-634ff1de22f5b17daf1a530fce6c43bb0ba52ac4.tar.bz2
aports-634ff1de22f5b17daf1a530fce6c43bb0ba52ac4.tar.xz
community/perl-regexp-tr: moved from testing
Diffstat (limited to 'community/perl-regexp-tr')
-rw-r--r--community/perl-regexp-tr/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-regexp-tr/APKBUILD b/community/perl-regexp-tr/APKBUILD
new file mode 100644
index 0000000000..d02aea24a2
--- /dev/null
+++ b/community/perl-regexp-tr/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-regexp-tr
+_pkgreal=Regexp-Tr
+pkgver=0.05
+pkgrel=0
+pkgdesc="Run-time-compiled tr/// objects."
+url="http://search.cpan.org/dist/Regexp-Tr/"
+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/CHIA/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="1c01cb427ae8cfeba5d92fb392336510 Regexp-Tr-0.05.tar.gz"
+sha256sums="d3e1563cb2eb04419715407766c402e702b351648edf2630fe7b6ee4ecfd81cd Regexp-Tr-0.05.tar.gz"
+sha512sums="2ef505f63790146fb57e76da5cea604c62d98b214b5db2eadd617059d29c3a8c7f923a4a5dc1f9152fbe36fea6f069821292b7fa2c38cc6f82fc536909eed5f9 Regexp-Tr-0.05.tar.gz"