aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-string-util/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-07-10 13:07:58 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-10 16:46:42 +0000
commitc775efc38e1d4033a18c3a3c5571bac94e32042e (patch)
treee6e0cfa9a7f7fd4b82b216e6897fac2658178beb /testing/perl-string-util/APKBUILD
parentd81d608f0d56ed02e02d63dd0b32ac1ad99b84e0 (diff)
downloadaports-c775efc38e1d4033a18c3a3c5571bac94e32042e.tar.bz2
aports-c775efc38e1d4033a18c3a3c5571bac94e32042e.tar.xz
testing/perl-string-util: new aport
Corrections
Diffstat (limited to 'testing/perl-string-util/APKBUILD')
-rw-r--r--testing/perl-string-util/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-string-util/APKBUILD b/testing/perl-string-util/APKBUILD
new file mode 100644
index 0000000000..648d1e4f37
--- /dev/null
+++ b/testing/perl-string-util/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: TBK <tbk@jjtc.eu>
+pkgname=perl-string-util
+_pkgreal=String-Util
+pkgver=1.26
+pkgrel=0
+pkgdesc="String processing utilities"
+url="http://search.cpan.org/dist/String-Util/"
+arch="noarch"
+license="GPL PerlArtistic"
+depends="perl perl-number-misc perl-test-toolbox"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MI/MIKO/$_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
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="27f4d9a36814695ca2123473f073577cc4ab31c0c1f9feccff8b9af0324c697df45efde981d638ed407521bb8348cf5512ebe1c9a5bfd5149df17b12014ed808 String-Util-1.26.tar.gz"