aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-string-crc32
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:35:47 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commitca8a98d14ef7222a4006baa304b0e20972a1c5da (patch)
tree0f153576fcbf0e55e5fa81153a75c5fbdb6d4329 /testing/perl-string-crc32
parentdf0b993e2986312179df72379301c47cccdfe812 (diff)
downloadaports-ca8a98d14ef7222a4006baa304b0e20972a1c5da.tar.bz2
aports-ca8a98d14ef7222a4006baa304b0e20972a1c5da.tar.xz
testing/perl-string-crc32: new aport
http://search.cpan.org/dist/String-CRC32/
Diffstat (limited to 'testing/perl-string-crc32')
-rw-r--r--testing/perl-string-crc32/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-string-crc32/APKBUILD b/testing/perl-string-crc32/APKBUILD
new file mode 100644
index 0000000000..9b0fd0c43e
--- /dev/null
+++ b/testing/perl-string-crc32/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-string-crc32
+_pkgreal=String-CRC32
+pkgver=1.6
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/String-CRC32/"
+arch="all"
+license="unrestricted"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ 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
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="e8915066edca5407de5c42cf6ec6367cfc8662d3c353ee7b9150e372fccbca136946a8e30ec18f4ccba3a08d4864387f3cad01b3b0117e019927b72c9081fe39 String-CRC32-1.6.tar.gz"