summaryrefslogtreecommitdiffstats
path: root/testing/py-logilab-astng/APKBUILD
blob: 0a8a78882315e00a75767737f4a69a92014ab58d (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-logilab-astng
_realname=logilab-astng
pkgver=0.21.1
pkgrel=0
pkgdesc="Rebuild a new abstract syntax tree from Python's ast"
url="http://pypi.python.org/pypi/logilab-astng"
arch="noarch"
license="GPL2+"
depends="python py-logilab-common"
depends_dev=""
makedepends="python-dev py-logilab-common"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/l/"$_realname"/"$_realname"-$pkgver.tar.gz"
_builddir="$srcdir"/"$_realname"-$pkgver

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	rm -f "$pkgdir"/usr/lib/python2.?/site-packages/logilab/__init__.*
}

md5sums="f25dd1d92a1b80d07a2f9d5bb4fe9d97  logilab-astng-0.21.1.tar.gz"