blob: e5d03f941ae683f2055dc3553fd03a14e993ad06 (
plain)
1 # Description: Lex and yacc parsing tools for Python
2 # URL: https://github.com/dabeaz/ply
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-setuptools
5
6 name=python3-ply
7 version=3.11
8 release=1
9 source=(https://github.com/dabeaz/ply/archive/$version/ply-$version.tar.gz)
10
11 build() {
12 cd ply-$version
13 /usr/bin/python3 setup.py build
14 /usr/bin/python3 setup.py install --prefix=/usr \
15 --root=$PKG \
16 --skip-build \
17 --optimize=1
18
19 find $PKG/usr/lib/python*/site-packages/ \
20 -maxdepth 1 \
21 -type f \
22 -name "${name#*-}-$version-py*.egg-info" \
23 -delete
24 }
|