diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-01 17:45:15 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-01 17:45:17 +0000 |
commit | ccca3236711b56d6ecc58247063a4e4f51c80476 (patch) | |
tree | e36f3bc0f90ed33dda3f9f5c5db143eef78d8c3c /community/perl-digest-perl-md5/APKBUILD | |
parent | 08c37535977c75460de510b473e579b299a934b0 (diff) | |
download | aports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.bz2 aports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.xz |
community/perl-d*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- Rename _builddir to builddir
- Add missing default_prepare in prepare()
- Remove old checksums
Diffstat (limited to 'community/perl-digest-perl-md5/APKBUILD')
-rw-r--r-- | community/perl-digest-perl-md5/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-digest-perl-md5/APKBUILD b/community/perl-digest-perl-md5/APKBUILD index 7c4a56540b..2488d9d182 100644 --- a/community/perl-digest-perl-md5/APKBUILD +++ b/community/perl-digest-perl-md5/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-digest-perl-md5 _pkgreal=Digest-Perl-MD5 pkgver=1.9 -pkgrel=0 +pkgrel=1 pkgdesc="Perl Implementation of Rivest's MD5 algorithm" url="http://search.cpan.org/dist/Digest-Perl-MD5/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +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" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install 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" |