aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xml2rfc/APKBUILD
blob: 7ee7e68e87493730b532537709f1b7092b698d5e (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=xml2rfc
pkgver=2.4.2
pkgrel=0
pkgdesc="A tool for converting XML documents into internet drafts and RFCs"
url="http://tools.ietf.org/"
arch="noarch"
license="BSD"
depends="python2 py-lxml"
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"

_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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="cd6a2aba2e82cfc09d87046dd0493b9b  xml2rfc-2.4.2.tar.gz"
sha256sums="60597904716b5ab96d48a0f50cead91a573bdfc0a842a4a37b512901e0ebd9b9  xml2rfc-2.4.2.tar.gz"
sha512sums="9122b0dbc0c4105e85c8a2d7323e7cec70418e273c2369d814eafb576a05d3f80413e34d1e46c9af5ef07a6eec94c0839123cc3ec296bc3a3f6831b743d003b0  xml2rfc-2.4.2.tar.gz"