archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-perlio-utf8-strict / repos / extra-x86_64 / PKGBUILD
blobdc91ebc01b3460390f9695a7463400fdd3d8ac2b
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname='perl-perlio-utf8-strict'
4 _dist=PerlIO-utf8_strict
5 pkgver=0.007
6 pkgrel=7
7 pkgdesc="Fast and correct UTF-8 PerlIO"
8 arch=('i686' 'x86_64')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl')
12 makedepends=('perl-test-exception')
13 url="https://metacpan.org/release/${_dist}"
14 source=(https://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_dist}-${pkgver}.tar.gz)
15 md5sums=('9e8fba7f15c612c4f2ed2f961bf1141b')
16 sha256sums=('83a33f2fe046cb3ad6afc80790635a423e2c7c6854afacc6998cd46951cc81cb')
18 build() {
19     cd "${srcdir}/${_dist}-${pkgver}"
20     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
21     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
22     perl Makefile.PL
23     make
26 check() {
27     cd "${srcdir}/${_dist}-${pkgver}"
28     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
29     export PERL_MM_USE_DEFAULT=1
30     make test
33 package() {
34     cd "${srcdir}/${_dist}-${pkgver}"
35     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
36     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"