1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/perl-unicode-utf8/APKBUILD

40 lines
1.3 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=perl-unicode-utf8
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Unicode-UTF8
pkgver=0.62
pkgrel=1
pkgdesc="Encoding and decoding of UTF-8 encoding form"
url="https://metacpan.org/release/Unicode-UTF8/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/Unicode-UTF8-$pkgver.tar.gz
080_super.t-32bit.patch
"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
056026ac2ee4c101de5ea6017db59f875121dba8fd23ab5c2ae525effb8cf864e8a1c24588bb2a027792e27568742fc75bd5765694027b110afef867a4b982e0 Unicode-UTF8-0.62.tar.gz
52989081d89565e8dac1143b0670cab23b275f8b42383e0b6a0e7ee8dc1d60f9485ab8c9b725ae8771a400287a7e357ff2caf27cccaee4889cdff7ba8058476e 080_super.t-32bit.patch
"