contrib/python3-ply/Pkgfile

24 lines
562 B
Plaintext
Raw Normal View History

# Description: Lex and yacc parsing tools for Python
2020-06-21 01:29:30 +02:00
# URL: https://github.com/dabeaz/ply
# 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)
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
}