2015-06-04 21:56:57 +10:00
|
|
|
# Description: A Python library that parses CSS3 Selectors and translates them to XPath 1.0.
|
|
|
|
# URL: http://pypi.python.org/pypi/cssselect
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-02-05 16:32:37 +11:00
|
|
|
# Depends on: python-setuptools
|
2015-06-04 21:56:57 +10:00
|
|
|
|
2018-08-08 00:14:28 +10:00
|
|
|
name=python-cssselect
|
2018-04-14 22:42:07 +10:00
|
|
|
version=1.0.3
|
2015-06-04 21:56:57 +10:00
|
|
|
release=1
|
2018-08-08 00:14:28 +10:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz)
|
2015-06-04 21:56:57 +10:00
|
|
|
|
|
|
|
build() {
|
2018-08-08 00:14:28 +10:00
|
|
|
cd ${name#*-}-$version
|
|
|
|
|
2015-06-04 21:56:57 +10:00
|
|
|
/usr/bin/python setup.py build
|
2018-08-08 00:14:28 +10:00
|
|
|
|
|
|
|
/usr/bin/python setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2015-06-04 21:56:57 +10:00
|
|
|
}
|