python3-hyperlink: adopted port

This commit is contained in:
Tim Biermann 2023-08-06 22:25:55 +02:00
parent fd929787b9
commit 04589c449a
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3xxucJwCqcb6zXtitbgeVhCfql+eyBdr60DtTyuKAm+pHj7UoMGJECCjfbm/n6he0YCIfsfX3WAjPInuNAKzwwI=
SHA256 (Pkgfile) = 998f88f0513a1cd49432ecd18a78a604a7ec0bae921fe326ff0e1d5298bc39e9
RWSagIOpLGJF38gErQ3QkOG3SG9b0zKR8mzWN6j5NGafzkpSDTfoTtNWHsknZ9y+dVE4Dm6WHiab3mhL4ZiIZNuof0E+0R0S5Qs=
SHA256 (Pkgfile) = 511d0f13a9e3caa632194b9cae1b805a67f36ef37f1568516c5539de6e458030
SHA256 (.footprint) = 38f555e7da9f196b752242eafa301675bafa0ec37ef8c6903f0c470e9a6b1607
SHA256 (hyperlink-21.0.0.tar.gz) = 427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b

View File

@ -1,15 +1,18 @@
# Description: A featureful, correct URL for Python.
# URL: https://pypi.python.org/pypi/hyperlink
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-setuptools
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools python3-idna
name=python3-hyperlink
version=21.0.0
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
source=(https://pypi.org/packages/source/h/hyperlink/hyperlink-$version.tar.gz)
build() {
cd ${name#*-}-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
cd hyperlink-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr \
--root=$PKG \
--skip-build
}