mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
https://metacpan.org/release/TINITA/YAML-LibYAML-0.903.0/diff/TINITA/YAML-LibYAML-0.902.0
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-yaml-libyaml
|
|
pkgver=0.903.0
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=YAML-LibYAML
|
|
pkgdesc="Perl YAML Serialization using XS and libyaml"
|
|
provides="perl-yaml-xs=$pkgver-r$pkgrel"
|
|
url="https://metacpan.org/release/YAML-LibYAML/"
|
|
arch="all"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-v$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
695b43c575f0a23896e52be3315416f25033e247b48ff04f7736ffbc75157ce7d6c196691ee378eff1c27b0bd8b4f3cbc225c622110476dc80c5ba818d6a89c7 YAML-LibYAML-v0.903.0.tar.gz
|
|
"
|