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-data-denter/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-data-denter/APKBUILD')
-rw-r--r-- | community/perl-data-denter/APKBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/community/perl-data-denter/APKBUILD b/community/perl-data-denter/APKBUILD index 4f4fd64d11..ee42603abd 100644 --- a/community/perl-data-denter/APKBUILD +++ b/community/perl-data-denter/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-data-denter _pkgreal=Data-Denter pkgver=0.15 -pkgrel=0 +pkgrel=1 pkgdesc="Perl module for Data-Denter" url="http://search.cpan.org/dist/Data-Denter/" arch="noarch" @@ -15,26 +15,31 @@ makedepends="perl-dev perl-doc $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_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="819e5c05fb61e90f4c1311286b080405 Data-Denter-0.15.tar.gz" -sha256sums="3ab4ff9bd49497bfc711dccf8c990aab10470a7bba65a9877632b14d8f5fdb55 Data-Denter-0.15.tar.gz" sha512sums="37512f0a7a9f749ceb0d4db210ad25ec812b0ff4a2d955312200251ac7c74fbf1f50930d8475865bc2215e838a00fde73b281ff45569d63931c10d3dc6df6505 Data-Denter-0.15.tar.gz" |