diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-27 13:20:49 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-27 13:20:51 +0000 |
commit | 562bc57b582f8d4a3c659cd124fa939cf9d7deb7 (patch) | |
tree | 58bb714c50c6a3e4bdd2527ab0f40d675dccf067 /community/perl-algorithm-diff/APKBUILD | |
parent | ae852e430b290c505942dde52442793ff69171fa (diff) | |
download | aports-562bc57b582f8d4a3c659cd124fa939cf9d7deb7.tar.bz2 aports-562bc57b582f8d4a3c659cd124fa939cf9d7deb7.tar.xz |
community/perl-[a-b]*: 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-algorithm-diff/APKBUILD')
-rw-r--r-- | community/perl-algorithm-diff/APKBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/community/perl-algorithm-diff/APKBUILD b/community/perl-algorithm-diff/APKBUILD index f3ae4ce97e..cfc36dc01c 100644 --- a/community/perl-algorithm-diff/APKBUILD +++ b/community/perl-algorithm-diff/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-algorithm-diff _pkgreal=Algorithm-Diff pkgver=1.1903 -pkgrel=0 +pkgrel=1 pkgdesc="Compute 'intelligent' differences between two files / lists" url="http://search.cpan.org/dist/Algorithm-Diff/" arch="noarch" @@ -17,22 +17,27 @@ subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" + prepare() { + default_prepare cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="0e8add21a641b8d66436df0c2024bf3b Algorithm-Diff-1.1903.tar.gz" -sha256sums="30e84ac4b31d40b66293f7b1221331c5a50561a39d580d85004d9c1fff991751 Algorithm-Diff-1.1903.tar.gz" sha512sums="61632be4c19a03ccacaa218ab7cb8bdbc53a4a6030b8173a59c7611056375536788392c1da00ab88f3df9884fc8a67825efc83b70e2e564664d5187021d6b106 Algorithm-Diff-1.1903.tar.gz" |