blob: 7e7b91e5b3dd1edfefe137f819cda3e6ffbc4a0a (
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
|
# Contributor: Andrew Steinke <rkcf@rkcf.me>
pkgname=python-esprima
_pkgname=esprima-python
pkgrel=2
pkgver=4.0.1
pkgdesc="Python port of esprima. ECMAScript parsing infrastructure for multipurpose analysis"
depends=('python')
makedepends=('python-setuptools')
url="https://github.com/Kronuz/esprima-python"
license=('BSD')
arch=('any')
source=("$url/archive/v$pkgver.tar.gz")
md5sums=('40b066e480bbe52168a441b99814dd23')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|