Verified Commit 6954463b authored by A. Wilcox's avatar A. Wilcox

user/perl-encode-detect: new package

parent 89d91bc8
# 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment