2020-06-20 11:16:29 +02:00
|
|
|
# Description: Lex and yacc parsing tools for Python
|
2020-06-21 01:29:30 +02:00
|
|
|
# URL: https://github.com/dabeaz/ply
|
2020-06-20 11:16:29 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: python3-setuptools
|
|
|
|
|
|
|
|
name=python3-ply
|
|
|
|
version=3.11
|
|
|
|
release=1
|
2020-06-21 01:29:30 +02:00
|
|
|
source=(https://github.com/dabeaz/ply/archive/$version/ply-$version.tar.gz)
|
2020-06-20 11:16:29 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ply-$version
|
|
|
|
python3 setup.py build
|
|
|
|
python3 setup.py install --prefix=/usr \
|
|
|
|
--root=$PKG \
|
|
|
|
--optimize=1
|
|
|
|
|
|
|
|
find $PKG/usr/lib/python*/site-packages/ \
|
|
|
|
-maxdepth 1 \
|
|
|
|
-type f \
|
|
|
|
-name "${name#*-}-$version-py*.egg-info" \
|
|
|
|
-delete
|
|
|
|
}
|