aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-logilab-astng/APKBUILD
blob: 812a712ca1d71e1325b71637cf50beb7cb2e8cb2 (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.24.0
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="295bdb2165657ad4b973b3fae1c95f12  logilab-astng-0.24.0.tar.gz"