summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:32:23 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:32:23 +0000
commit6954463b3f269602d48f3a2f5516b35d2b73550b (patch)
treef1af86758b1e99418737f7a377d37413ef4d301c
parent89d91bc8a3f32a551b1a1046dc09760b644ab883 (diff)
downloadpackages-6954463b3f269602d48f3a2f5516b35d2b73550b.tar.gz
packages-6954463b3f269602d48f3a2f5516b35d2b73550b.tar.bz2
packages-6954463b3f269602d48f3a2f5516b35d2b73550b.tar.xz
packages-6954463b3f269602d48f3a2f5516b35d2b73550b.zip
user/perl-encode-detect: new package
-rw-r--r--user/perl-encode-detect/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-encode-detect/APKBUILD b/user/perl-encode-detect/APKBUILD
new file mode 100644
index 000000000..9925d2845
--- /dev/null
+++ b/user/perl-encode-detect/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-encode-detect
+_pkgname=Encode-Detect
+pkgver=1.01
+pkgrel=0
+pkgdesc="Detect encoding of data in Perl"
+url="https://metacpan.org/release/Encode-Detect"
+arch="all"
+license="MPL-1.1"
+depends=""
+makedepends="perl-dev perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/J/JG/JGMYERS/Encode-Detect-$pkgver.tar.gz"
+builddir="$srcdir/Encode-Detect-$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
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="cc9c81f716dcb61abb321abd84e4ebb95a674d9aa34c4265f58cace38f6d15ef4f2b8338190ae7d200672e047b795a30ce6155f9c1b1c424e25d962579b96224 Encode-Detect-1.01.tar.gz"