contrib/python3-ply/Pkgfile

25 lines
599 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
2020-11-03 22:05:28 +01:00
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr \
--root=$PKG \
2020-11-03 22:05:28 +01:00
--skip-build \
--optimize=1
find $PKG/usr/lib/python*/site-packages/ \
-maxdepth 1 \
-type f \
-name "${name#*-}-$version-py*.egg-info" \
-delete
}