contrib/python3-beautifulsoup4/Pkgfile

20 lines
675 B
Plaintext
Raw Normal View History

2018-08-07 16:12:54 +02:00
# Description: Python HTML/XML Parser.
2020-06-01 17:45:48 +02:00
# URL: https://www.crummy.com/software/BeautifulSoup/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-hatchling python3-tox python3-chardet python3-soupsieve
2018-08-07 16:12:54 +02:00
name=python3-beautifulsoup4
_name=${name#*-}
version=4.12.2
2020-04-12 03:35:13 +02:00
release=1
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
2018-08-07 16:12:54 +02:00
build() {
cd $_name-$version
2018-08-07 16:12:54 +02:00
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
2018-08-07 16:12:54 +02:00
rm -rf $PKG/usr/lib/python3.10/site-packages/$_name-$version.dist-info/licenses/
2018-08-07 16:12:54 +02:00
}