aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-encode-locale
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 04:37:13 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:48 +0000
commit836b98b3c7314d216566a7f1bfba21a6996905ae (patch)
treec3d681067143c5107011a21cf3d12beab82a8b9c /main/perl-encode-locale
parent1f7f771c4cbeb582b3a4ab79356ba302732c6ecf (diff)
downloadaports-836b98b3c7314d216566a7f1bfba21a6996905ae.tar.bz2
aports-836b98b3c7314d216566a7f1bfba21a6996905ae.tar.xz
main/perl*: mass test suite addition + modernisation of 18 Perl packages
Diffstat (limited to 'main/perl-encode-locale')
-rw-r--r--main/perl-encode-locale/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/main/perl-encode-locale/APKBUILD b/main/perl-encode-locale/APKBUILD
index dd4a9d4be5..361bbc6384 100644
--- a/main/perl-encode-locale/APKBUILD
+++ b/main/perl-encode-locale/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-encode-locale
_realname=Encode-Locale
pkgver=1.05
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module - Determine the locale encoding"
url="http://search.cpan.org/~gaas"
arch="noarch"
@@ -14,21 +14,24 @@ install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz"
-_builddir="$srcdir/$_realname-$pkgver"
+builddir="$srcdir/$_realname-$pkgver"
build() {
- cd $_builddir
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd $_builddir
+ cd "$builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}
-md5sums="fcfdb8e4ee34bcf62aed429b4a23db27 Encode-Locale-1.05.tar.gz"
-sha256sums="176fa02771f542a4efb1dbc2a4c928e8f4391bf4078473bd6040d8f11adb0ec1 Encode-Locale-1.05.tar.gz"
sha512sums="68ed5732fd3645eca2ea54080067677a48f90fc5a594a1b453a322f3127e67a984d539cb5fd41ac63a03b9dab693c070b65e3c70a2a677dc61b4634f3e212d06 Encode-Locale-1.05.tar.gz"