aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-parsing/APKBUILD
blob: 962609b986763344a9446356f59363125b1f5994 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-parsing
pkgver=1.5.7
pkgrel=0
pkgdesc="An object-oriented approach to text processing"
url="http://pyparsing.wikispaces.com/"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://downloads.sourceforge.net/pyparsing/pyparsing-$pkgver.tar.gz"

_builddir="$srcdir"/pyparsing-$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"
	python setup.py build || return 1
}

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

md5sums="b610eee4da882f0c9d063eaf83dc8fbf  pyparsing-1.5.7.tar.gz"
sha256sums="2b3a013582cbff858e71ff23129e01acc5e99f511578d106ffb1e74bde15e893  pyparsing-1.5.7.tar.gz"
sha512sums="051efdc899b23981595c9661688b089bf973c45624099ebcbbe208e8e75bcbfacd0149b39ffda4d53622dd385f1c31751eed94a04239ba8baa2fceb0707c7207  pyparsing-1.5.7.tar.gz"