blob: d854d28b68763b5cf6aa81ecce1c7cf27e211ee5 (
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 python3 setup.py build
14 python3 setup.py install --prefix=/usr \
15 --root=$PKG \
16 --optimize=1
17
18 find $PKG/usr/lib/python*/site-packages/ \
19 -maxdepth 1 \
20 -type f \
21 -name "${name#*-}-$version-py*.egg-info" \
22 -delete
23 }
|