diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-05-01 13:26:46 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-05-01 13:31:55 +0000 |
commit | e74ef0fe60c839948b8373abf176da8ffcb81922 (patch) | |
tree | 42fe9105c240f971c66717ffbe4d16fc770152b2 /main/perl-digest-md5/APKBUILD | |
parent | 64235027cc2af46f5ca41c4cfdfcb422018356d8 (diff) | |
download | aports-e74ef0fe60c839948b8373abf176da8ffcb81922.tar.bz2 aports-e74ef0fe60c839948b8373abf176da8ffcb81922.tar.xz |
main/perl-digest-md5: new aport
Diffstat (limited to 'main/perl-digest-md5/APKBUILD')
-rw-r--r-- | main/perl-digest-md5/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-digest-md5/APKBUILD b/main/perl-digest-md5/APKBUILD new file mode 100644 index 0000000000..a808c7b54c --- /dev/null +++ b/main/perl-digest-md5/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-digest-md5 +_pkgreal=Digest-MD5 +pkgver=2.54 +pkgrel=0 +pkgdesc="Perl interface to the MD-5 algorithm" +url="http://search.cpan.org/dist/Digest-MD5/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_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="bb2c9e79a8fd181abcb3071e94d7c099 Digest-MD5-2.54.tar.gz" +sha256sums="90de11e3743ef1c753a5c2032b434e09472046fbcf346996cbe5d135b217f390 Digest-MD5-2.54.tar.gz" +sha512sums="59bea96be8ee1c9bbcd1724b1ad51e0ee58c6e351a31597ed4de1230e7de0d0d717a8ca9013c4aefa99167b5fb308fc488bc23e2640aa6be2aa563f878c28cb6 Digest-MD5-2.54.tar.gz" |