contrib/python-ply/Pkgfile

19 lines
501 B
Plaintext
Raw Normal View History

2019-04-19 22:23:29 +02:00
# Description: Lex and yacc parsing tools for Python
# URL: https://www.dabeaz.com/ply/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: python
name=python-ply
version=3.11
release=1
source=(http://www.dabeaz.com/ply/ply-$version.tar.gz)
build() {
cd ply-$version
2019-07-27 15:50:10 +02:00
python setup.py build
2019-04-19 22:23:29 +02:00
python setup.py install --prefix=/usr --root=$PKG --optimize=1
2019-07-27 15:50:10 +02:00
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
-name "${name#*-}-$version-py*.egg-info" -delete
2019-04-19 22:23:29 +02:00
}