Hoang Nguyen ccbd1e3484 testing/streamlink: upgrade to 6.3.1
* Remove `py3-versioningit` from makedepends (13762836c2)
* Switch source tarball to the custom one signed by the developer with
  shell completions, man page and replaced version string.
2023-11-12 08:16:49 +00:00

75 lines
1.7 KiB
Plaintext

# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=streamlink
pkgver=6.3.1
pkgrel=0
pkgdesc="CLI for extracting streams from various websites to a video player of your choosing"
url="https://streamlink.github.io/"
arch="noarch"
license="BSD-2-Clause"
depends="
python3
py3-certifi
py3-isodate
py3-lxml
py3-pycountry
py3-pycryptodome
py3-pysocks
py3-requests
py3-trio
py3-trio-websocket
py3-typing-extensions
py3-urllib3
py3-websocket-client
"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="
py3-freezegun
py3-mock
py3-pytest
py3-pytest-asyncio
py3-pytest-trio
py3-requests-mock
"
subpackages="
$pkgname-pyc
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
"
source="https://github.com/streamlink/streamlink/releases/download/$pkgver/streamlink-$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
TZ=UTC .testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
install -Dm644 docs/_build/man/$pkgname.1 \
"$pkgdir"/usr/share/man/man1/$pkgname.1
install -Dm644 completions/bash/$pkgname \
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -Dm644 completions/zsh/_$pkgname \
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
sha512sums="
a1e50688acd3b99efd20c1ff1d3bda03cb6e6b5566484d29372bc6d08ee4115f8ad2edea2f0a90f5de105edb52689781892f413f4af3d836cdd9e9a364006610 streamlink-6.3.1.tar.gz
"