# Maintainer: Chocobo1 pkgname=libyaml-git pkgver=0.2.5.r2.gf8f760f pkgrel=1 pkgdesc="C library for parsing and emitting YAML" arch=('i686' 'x86_64') url="https://pyyaml.org/wiki/LibYAML" license=('MIT') depends=('glibc') makedepends=('git') provides=("libyaml=$pkgver") conflicts=('libyaml') options=('staticlibs') source=("git+https://github.com/yaml/libyaml.git") sha256sums=('SKIP') pkgver() { cd "libyaml" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "libyaml" ./bootstrap ./configure \ --prefix="/usr" make } check() { cd "libyaml" make check } package() { cd "libyaml" make DESTDIR="$pkgdir" install install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libyaml" }