upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-yaml-libyaml / repos / community-x86_64 / PKGBUILD
blob926ee57f7258425ff0324763fdf935cc683ce18c
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
2 # Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
3 # Generator  : CPANPLUS::Dist::Arch 1.32
5 pkgname='perl-yaml-libyaml'
6 pkgver=0.86
7 pkgrel=1
8 pkgdesc="Perl YAML Serialization using XS and libyaml"
9 arch=('x86_64')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl')
13 makedepends=()
14 url='https://search.cpan.org/dist/YAML-LibYAML/'
15 source=("https://cpan.metacpan.org/authors/id/I/IN/INGY/YAML-LibYAML-$pkgver.tar.gz")
16 sha256sums=('b139675326591c95d2e431be8d8dd13fd87080b5826716de99879fc5e614f9d8')
18 build() {
19   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20       PERL_AUTOINSTALL=--skipdeps                            \
21       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'"     \
22       PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
23       MODULEBUILDRC=/dev/null
24     cd "$srcdir/YAML-LibYAML-$pkgver"
25     /usr/bin/perl Makefile.PL
26     make
27   )
30 check() {
31   cd "$srcdir/YAML-LibYAML-$pkgver"
32   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
33     make test
34   )
37 package() {
38   cd "$srcdir/YAML-LibYAML-$pkgver"
39   make install
40   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete