mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
36 lines
995 B
Text
36 lines
995 B
Text
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
|
pkgname=perl-encode-detect
|
|
pkgver=1.01
|
|
pkgrel=0
|
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Encode-Detect
|
|
pkgdesc="An Encode::Encoding subclass that detects the encoding of data"
|
|
url="https://metacpan.org/release/Encode-Detect/"
|
|
arch="all"
|
|
license="MPL-1.1"
|
|
depends="perl"
|
|
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/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL \
|
|
--installdirs=vendor \
|
|
--create_packlist=0
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
cc9c81f716dcb61abb321abd84e4ebb95a674d9aa34c4265f58cace38f6d15ef4f2b8338190ae7d200672e047b795a30ce6155f9c1b1c424e25d962579b96224 Encode-Detect-1.01.tar.gz
|
|
"
|