summaryrefslogtreecommitdiffstats
path: root/main/libxslt/APKBUILD
blob: 708df73a17de7fb721f4b1300620c9652371dc01 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxslt
pkgver=1.1.27
pkgrel=1
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"
patches="libxslt-Fix-regression-Default-namespace-not-correctly-used.patch"
source="ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz
	$patches"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $patches; do
		msg $i
		patch -p1 -i "$srcdir"/$i || return 1
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr || return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir"/usr -name '*.la' -delete

	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="4d01ff464b9ea7236925a1adf147c7f8  libxslt-1.1.27.tar.gz
4009f95496a7e97dd4269e7e43544e9c  libxslt-Fix-regression-Default-namespace-not-correctly-used.patch"