summaryrefslogtreecommitdiff
path: root/system/perl-encode-locale/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:01:22 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:01:22 -0500
commit31a4cf0d0c61230e378a688693c6fcf9840b1521 (patch)
tree690eca426e65da7a82b65e4accbb927cf7510c03 /system/perl-encode-locale/APKBUILD
parent4418cb617cda6daf99aef57b5a16d0b4c313a8a8 (diff)
downloadpackages-31a4cf0d0c61230e378a688693c6fcf9840b1521.tar.gz
packages-31a4cf0d0c61230e378a688693c6fcf9840b1521.tar.bz2
packages-31a4cf0d0c61230e378a688693c6fcf9840b1521.tar.xz
packages-31a4cf0d0c61230e378a688693c6fcf9840b1521.zip
system/perl-encode-locale: add for lwp
Diffstat (limited to 'system/perl-encode-locale/APKBUILD')
-rw-r--r--system/perl-encode-locale/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/system/perl-encode-locale/APKBUILD b/system/perl-encode-locale/APKBUILD
new file mode 100644
index 000000000..6f79efa94
--- /dev/null
+++ b/system/perl-encode-locale/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-encode-locale
+_realname=Encode-Locale
+pkgver=1.05
+pkgrel=2
+pkgdesc="Perl module - Determine locale encoding"
+url="http://search.cpan.org/~gaas"
+arch="noarch"
+license="GPL-2.0-only Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz"
+
+builddir="$srcdir/$_realname-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" -name perllocal.pod -delete
+}
+
+sha512sums="68ed5732fd3645eca2ea54080067677a48f90fc5a594a1b453a322f3127e67a984d539cb5fd41ac63a03b9dab693c070b65e3c70a2a677dc61b4634f3e212d06 Encode-Locale-1.05.tar.gz"