APKBUILD 985 Bytes
Newer Older
1 2 3
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-encode-detect
Kiyoshi Aman's avatar
Kiyoshi Aman committed
4 5 6 7
_pkgreal=Encode-Detect
_author=JGMYERS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
8 9 10 11 12 13
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"
Kiyoshi Aman's avatar
Kiyoshi Aman committed
14
depends="perl"
15 16
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
Kiyoshi Aman's avatar
Kiyoshi Aman committed
17 18
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="cc9c81f716dcb61abb321abd84e4ebb95a674d9aa34c4265f58cace38f6d15ef4f2b8338190ae7d200672e047b795a30ce6155f9c1b1c424e25d962579b96224  Encode-Detect-1.01.tar.gz"