blob: f1d570f3877a3350eecb7eca80557a96d16589e7 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Torge Matthies <openglfreak at googlemail dot com>
_pkgname=libfyaml
pkgname=libfyaml-git
pkgver=v0.3.r59.gc09ea10
pkgrel=1
pkgdesc='A fancy 1.2 YAML and JSON parser/writer.'
arch=(x86_64)
url='https://github.com/pantoniou/libfyaml'
license=('MIT')
makedepends=(git python python-virtualenv python-pip)
#makedepends=(git)
checkdepends=(libyaml check)
provides=(libfyaml "libfyaml=${pkgver}")
conflicts=(libfyaml)
source=('git+https://github.com/pantoniou/libfyaml.git'
'git+https://github.com/nst/JSONTestSuite.git'
'git+https://github.com/yaml/yaml-test-suite.git')
sha512sums=(SKIP
SKIP
SKIP)
prepare() {
cd "${srcdir}/${_pkgname}"
mv "${srcdir}/JSONTestSuite" test/json-test-suite-data
mv "${srcdir}/yaml-test-suite" test/test-suite-data
}
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
./bootstrap.sh
./configure --prefix=/usr
make
# This does not work currently:
#(
# . scripts/create-virtual-env
# make doc-html
#)
}
# Checks are broken somehow...
_check() {
cd "${srcdir}/${_pkgname}"
make check
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}/" install
#cp -r --no-preserve=all doc/_build/html "${pkgdir}/usr/share/doc/${_pkgname}"
}
|