Files
LFS-PKGBUILDs/dev-libs/libyaml-0.2.5.PKGBUILD

31 lines
640 B
Bash

pkgname=libyaml
pkgver=0.2.5
pkgdesc="YAML 1.1 library"
arch=('x86_64')
homepage="https://pyyaml.org/wiki/LibYAML"
license=('MIT')
depends=('glibc')
sources=("yaml-${pkgver}.tar.gz")
urls=("https://github.com/yaml/libyaml/releases/download/${pkgver}/${sources[0]}")
md5sums=("bb15429d8fb787e7d3f1c83ae129a999")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr --disable-static
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
install -Dm644 License -t "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:ft=sh syn=sh et sw=2: