summaryrefslogtreecommitdiffstats
path: root/main/xmlto/APKBUILD
blob: 463f29e63aeddceea0c36dbdf6a88ef83ea59578 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmlto
pkgver=0.0.26
pkgrel=0
pkgdesc="Convert xml to many other formats"
url="http://cyberelk.net/tim/software/xmlto/"
arch="all"
license="GPL2+"
depends="libxslt perl-yaml-syck perl-test-pod bash docbook-xsl"
depends_dev=
makedepends="$depends_dev bash"
install=""
subpackages="$pkgname-doc"
source="https://fedorahosted.org/releases/x/m/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	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 \
		--mandir=/usr/share/man \
		|| return 1
	make -j1 || return 1
}

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

md5sums="c90a47c774e0963581c1ba57235f64f4  xmlto-0.0.26.tar.bz2"
sha256sums="efb49b2fb3bc27c1a1e24fe34abf19b6bf6cbb40844e6fd58034cdf21c54b5ec  xmlto-0.0.26.tar.bz2"
sha512sums="85110f22a7b5a5c8de4115ae5d0391645a223191b17455a4f9539b02f56f7003fd4ba70e48f0e5e46cdb91220a9027802e725f88ca8659e3ce1576f8609ccd18  xmlto-0.0.26.tar.bz2"