diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:44:54 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:44:56 +0000 |
commit | 309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e (patch) | |
tree | 8285479a453f1a00a2b7a57fd888d5758a382633 /community/perl-hash-merge-simple | |
parent | 3203ab3332b63ed5ab432420cb6897ddacfd729b (diff) | |
download | aports-309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e.tar.bz2 aports-309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e.tar.xz |
community/perl-[g-h]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- Rename _builddir to builddir
- Add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-hash-merge-simple')
-rw-r--r-- | community/perl-hash-merge-simple/APKBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/community/perl-hash-merge-simple/APKBUILD b/community/perl-hash-merge-simple/APKBUILD index 926fe829dc..595213446c 100644 --- a/community/perl-hash-merge-simple/APKBUILD +++ b/community/perl-hash-merge-simple/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-hash-merge-simple _pkgreal=Hash-Merge-Simple pkgver=0.051 -pkgrel=0 +pkgrel=1 pkgdesc="Recursively merge two or more hashes, simply" url="http://search.cpan.org/dist/Hash-Merge-Simple/" arch="noarch" @@ -15,26 +15,31 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RO/ROKR/$_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="f47b9b99794b1f958bcfa3e816ff4660 Hash-Merge-Simple-0.051.tar.gz" -sha256sums="1c56327873d2f04d5722777f044863d968910466997740d55a754071c6287b73 Hash-Merge-Simple-0.051.tar.gz" sha512sums="8db850144593632ce8ac8a560dac6670814a9ce3d1091d6aa42ab0eadca4b350671103b1de906d562aeaa0934fd58bd4e557821c5bcd730a10849f8505f65c4c Hash-Merge-Simple-0.051.tar.gz" |