2018-08-08 00:12:54 +10:00
|
|
|
# Description: Python HTML/XML Parser.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.crummy.com/software/BeautifulSoup/
|
2023-03-03 15:39:56 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2023-04-15 07:40:03 -04:00
|
|
|
# Depends on: python3-hatchling python3-tox python3-chardet python3-soupsieve
|
2018-08-08 00:12:54 +10:00
|
|
|
|
|
|
|
name=python3-beautifulsoup4
|
2023-03-03 15:39:56 -05:00
|
|
|
_name=${name#*-}
|
2023-04-15 07:40:03 -04:00
|
|
|
version=4.12.2
|
2020-04-12 11:35:13 +10:00
|
|
|
release=1
|
2023-03-03 15:39:56 -05:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
|
2018-08-08 00:12:54 +10:00
|
|
|
|
|
|
|
build() {
|
2023-04-15 07:40:03 -04:00
|
|
|
cd $_name-$version
|
2018-08-08 00:12:54 +10:00
|
|
|
|
2023-04-15 07:40:03 -04: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-08 00:12:54 +10:00
|
|
|
|
2023-04-15 07:40:03 -04:00
|
|
|
rm -rf $PKG/usr/lib/python3.10/site-packages/$_name-$version.dist-info/licenses/
|
2018-08-08 00:12:54 +10:00
|
|
|
}
|