python3-adblock: use alternate distfile; PyPI archive does not build

This commit is contained in:
Andrew J. Hesford 2024-06-05 06:53:24 -04:00
parent 3a87f610c9
commit e69d70b394

View file

@ -1,9 +1,10 @@
# Template file for 'python3-adblock'
pkgname=python3-adblock
version=0.6.0
revision=4
revision=5
build_style=python3-pep517
build_helper="rust"
make_check_args="-k not(test_required_python_version)"
#XXX: Does statically link against openssl
hostmakedepends="maturin pkg-config cargo openssl-devel"
makedepends="openssl-devel python3-devel rust-std"
@ -14,8 +15,8 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="Apache-2.0, MIT"
homepage="https://github.com/ArniDagur/python-adblock"
changelog="https://raw.githubusercontent.com/ArniDagur/python-adblock/master/CHANGELOG.md"
distfiles="${PYPI_SITE}/a/adblock/adblock-${version}.tar.gz"
checksum=11651e956c69b3ee571404754df665854717255b80f437e9dc323ee82b564e72
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=cdde5db640f1d9205785641665b79e6edb7c51092a68536bc4907560c71136b2
do_build() {
maturin build -o . --release --target "${RUST_TARGET}" --manylinux off