Name libyaml
Description YAML 1.1 parser and emitter written in C
Version 0.2.5-r2
Package Base yaml
Homepage https://pyyaml.org/wiki/LibYAML
Maintainers ['Natanael Copa <ncopa@alpinelinux.org>']
Contributors []
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/yaml
Sources []
Dependencies ['libc.musl-x86_64.so.1']
Optional-Dependencies []
Build-Dependencies []
Provides ['so:libyaml-0.so.2=2.0.9']
Builddate 03-01-2025 18:05:21
Architecture x86_64
Distro-Version v3.22
Licenses ['MIT']
Hash Q1/HotAH0rO1pby+NKq9kYKasqPso=
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=yaml
pkgver=0.2.5
pkgrel=2
pkgdesc="YAML 1.1 parser and emitter written in C"
url="https://pyyaml.org/wiki/LibYAML"
arch="all"
license="MIT"
subpackages="$pkgname-static $pkgname-dev"
source="http://pyyaml.org/download/libyaml/yaml-$pkgver.tar.gz"

prepare() {
 	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
dadd7d8e0d88b5ebab005e5d521d56d541580198aa497370966b98c904586e642a1cd4f3881094eb57624f218d50db77417bbfd0ffdce50340f011e35e8c4c02  yaml-0.2.5.tar.gz
"