summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29c56784f4ad6db97b95bef11f3b4cc47d8c7738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Martin Diehl <aur@martin-diehl.net>
pkgname=libfyaml
pkgver=0.9
pkgrel=2
pkgdesc='Fully feature complete YAML parser and emitter'
arch=('x86_64')
url='https://pantoniou.github.io/libfyaml'
optdepends=('jq')
license=('MIT')
source=(https://github.com/pantoniou/libfyaml/releases/download/v${pkgver}/libfyaml-${pkgver}.tar.gz)

sha512sums=('95979361ed50a46acc6da698e4750562f6e3e46aa5d050180225d93afb74929981d9c1d1ca3b6a77fe21a1546a68a9e3df17cdfef5f93257ad5d0c7ad03ae2eb')

prepare() {
    sed -i '416s/1/0/g' ${pkgname}-${pkgver}/configure.ac # https://github.com/pantoniou/libfyaml/issues/99
}

build() {
    cd "$srcdir"/libfyaml-${pkgver}
    autoreconf -fvi
    ./configure --prefix=/usr
    make
}


check() {
    cd "$srcdir"/libfyaml-${pkgver}
    make check
}


package() {
  cd "$srcdir"/libfyaml-${pkgver}
  make DESTDIR="$pkgdir/" install || return 1
}