diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:01 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:03 +0000 |
commit | 62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch) | |
tree | 3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-encode-jis2k | |
parent | 826feb495ee579cc205840c86feb60a363cd72ff (diff) | |
download | aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.bz2 aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.xz |
community/perl-[e-f]*: 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-encode-jis2k')
-rw-r--r-- | community/perl-encode-jis2k/APKBUILD | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/community/perl-encode-jis2k/APKBUILD b/community/perl-encode-jis2k/APKBUILD index 3713853fa9..0572f6c8ec 100644 --- a/community/perl-encode-jis2k/APKBUILD +++ b/community/perl-encode-jis2k/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-encode-jis2k _pkgreal=Encode-JIS2K pkgver=0.03 -pkgrel=2 +pkgrel=3 pkgdesc="Perl module for Encode-JIS2K" url="http://search.cpan.org/dist/Encode-JIS2K/" arch="all" @@ -13,33 +13,35 @@ cpandepends="" cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" -subpackages="" source="http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" if [ -e Build.PL ]; then - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor else - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } 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="60539471aa408a2b793cd45a6ce651db Encode-JIS2K-0.03.tar.gz" -sha256sums="1ec84d72db39deb4dad6fca95acfcc21033f45a24d347c20f9a1a696896c35cc Encode-JIS2K-0.03.tar.gz" sha512sums="93d73a84e394faf8411d158ead0bc398ff1935ba14e35c64992d9fc8c2aa4ce1a71b5f46dbb1a765d3b160b19a9216bec68d42c8be1940d271dde418a62db4ec Encode-JIS2K-0.03.tar.gz" |