aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-digest-perl-md5/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 09:31:44 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 11:24:37 +0000
commitd13b8aa7bdd42a3ab393874273a4b3b0f5f6e9b9 (patch)
tree30c9259f56bd148a38bc70635d850dacf18c4f72 /community/perl-digest-perl-md5/APKBUILD
parent9dd8d86b3463be0679e4cda662e0437506be81de (diff)
downloadaports-d13b8aa7bdd42a3ab393874273a4b3b0f5f6e9b9.tar.bz2
aports-d13b8aa7bdd42a3ab393874273a4b3b0f5f6e9b9.tar.xz
community/perl-digest-perl-md5: moved from testing
Diffstat (limited to 'community/perl-digest-perl-md5/APKBUILD')
-rw-r--r--community/perl-digest-perl-md5/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-digest-perl-md5/APKBUILD b/community/perl-digest-perl-md5/APKBUILD
new file mode 100644
index 0000000000..f26ef78e02
--- /dev/null
+++ b/community/perl-digest-perl-md5/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-digest-perl-md5
+_pkgreal=Digest-Perl-MD5
+pkgver=1.9
+pkgrel=0
+pkgdesc="Perl Implementation of Rivest's MD5 algorithm"
+url="http://search.cpan.org/dist/Digest-Perl-MD5/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DE/DELTA/$_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="41f1160e11ce0d99021fc8d6c725fa3d Digest-Perl-MD5-1.9.tar.gz"
+sha256sums="7100cba1710f45fb0e907d8b1a7bd8caef35c64acd31d7f225aff5affeecd9b1 Digest-Perl-MD5-1.9.tar.gz"
+sha512sums="015a1f046b85b5b89c1b44073d60116d483332cd667cb7230222df9651b7da837a532991e91848ff0b65f171b8870c2c4bda651da4ca54ea75d062ba6a55b525 Digest-Perl-MD5-1.9.tar.gz"