aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxslt/APKBUILD
blob: 395b94a12c2028a10f794114baf025b9d6361027 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libxslt
pkgver=1.1.28
pkgrel=2
pkgdesc="XML stylesheet transformation library"
url="http://xmlsoft.org/XSLT/"
arch="all"
license="custom"
depends=
makedepends="libxml2-dev libgcrypt-dev libgpg-error-dev python-dev"
subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py"
source="ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz
	CVE-2015-7995.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	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 \
		|| return 1
	make
}

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

	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

py() {
	pkgdesc="$pkgname python bindings"
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
md5sums="9667bf6f9310b957254fdcf6596600b7  libxslt-1.1.28.tar.gz
e8c439ac26c2d7a6082e3f4feb65912b  CVE-2015-7995.patch"
sha256sums="5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c  libxslt-1.1.28.tar.gz
1c29c53217d54c5ebf1062e26a943c455134436dca143323bb8fbd1f59eac945  CVE-2015-7995.patch"
sha512sums="20b65bdaceaac5bd11d509bf683ce8e344030bc95164639266ae705d41659bcba47b5be1b059d0d67681e6428b0710db675d1749c06aa531bc2212ed3d0511b1  libxslt-1.1.28.tar.gz
dafd8d2222aa4fbe770463ae9907ff32c214b83c01acd53bf020821d3f53dc29a6624917ae695c5e889efba7aa710f33fe6326d10f558313af563bec6142f5e2  CVE-2015-7995.patch"