aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-encode-eucjpascii
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:01 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:03 +0000
commit62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch)
tree3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-encode-eucjpascii
parent826feb495ee579cc205840c86feb60a363cd72ff (diff)
downloadaports-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-eucjpascii')
-rw-r--r--community/perl-encode-eucjpascii/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-encode-eucjpascii/APKBUILD b/community/perl-encode-eucjpascii/APKBUILD
index ffaf6f0990..9ba7c67c10 100644
--- a/community/perl-encode-eucjpascii/APKBUILD
+++ b/community/perl-encode-eucjpascii/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-encode-eucjpascii
_pkgreal=Encode-EUCJPASCII
pkgver=0.03
-pkgrel=2
+pkgrel=3
pkgdesc="Perl module for Encode-EUCJPASCII"
url="http://search.cpan.org/dist/Encode-EUCJPASCII/"
arch="all"
@@ -13,32 +13,35 @@ cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
-subpackages=""
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/$_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="5daa65f55b7c2050bb0713d9e95f239d Encode-EUCJPASCII-0.03.tar.gz"
-sha256sums="f998d34d55fd9c82cf910786a0448d1edfa60bf68e2c2306724ca67c629de861 Encode-EUCJPASCII-0.03.tar.gz"
sha512sums="0d7a06e1f5eaa20451ef360ef78372cb0ecf0c9a525efed5db0b55b0fc98b47c87eff4f9be069bdd7be50156f8edfc0cb9a257e9efd5a33130cc745dca12b7d8 Encode-EUCJPASCII-0.03.tar.gz"