aboutsummaryrefslogtreecommitdiffstats
path: root/main/yaml/APKBUILD
blob: 1d7aad34729383e418de40db3d6cde9cf950e3d7 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=yaml
pkgver=0.1.6
pkgrel=1
pkgdesc="YAML 1.1 parser and emitter written in C"
url="http://pyyaml.org/wiki/LibYAML"
arch="all"
license="MIT"
depends=""
makedepends=""
install=""
subpackages="$pkgname-dev"
source="http://pyyaml.org/download/libyaml/yaml-$pkgver.tar.gz
	CVE-2014-9130.patch
	"

_builddir="$srcdir"/yaml-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="5fe00cda18ca5daeb43762b80c38e06e  yaml-0.1.6.tar.gz
ec710ccf96476c5eff3eba2e412560d5  CVE-2014-9130.patch"
sha256sums="7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749  yaml-0.1.6.tar.gz
4255081c22c7e823dc77967efcbcb2493cac991fca3648c7d825c1bc3c25d2fa  CVE-2014-9130.patch"
sha512sums="eef1f26fec0a305836b8c6a65def4e2864fe2415618e7490717d4e42f0fc51048727ab0e7e4a6c3a2783ae762fddd6b78091a76a6cd3a2710ae18e3dfb27cd44  yaml-0.1.6.tar.gz
1d6e7db8b45ba4edc3d0b89951113c908c65f7477630ab3c046d4eddc1533eb32b9840d9dbe65704c9f70958e6eeb214fdbb6f393f3fdcae011aaf09bc4c5e97  CVE-2014-9130.patch"