opt/python3-pyparsing/Pkgfile

25 lines
725 B
Plaintext
Raw Normal View History

2017-02-04 07:50:24 +01:00
# Description: Python parsing module.
# URL: https://pypi.python.org/pypi/pyparsing/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3
name=python3-pyparsing
2018-11-10 11:36:17 +01:00
version=2.3.0
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
2017-02-04 07:50:24 +01:00
build() {
cd ${name#*-}-$version
/usr/bin/python3 setup.py build
2017-02-04 07:50:24 +01:00
/usr/bin/python3 setup.py install \
--prefix=/usr --root=$PKG --optimize=1
find $PKG/usr/lib/python*/site-packages -type f -exec chmod go-w {} +
2017-02-04 07:50:24 +01:00
# remove sdist metadata, as wheel metadata will be used with python3-pip
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
-name "${name#*-}-$version-py*.egg-info" -delete
2017-02-04 07:50:24 +01:00
}