# Template file for 'streamlink'
pkgname=streamlink
version=2.4.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-lxml python3-pycryptodome python3-pycountry
 python3-pysocks python3-requests python3-websocket-client python3-isodate"
checkdepends="python3-pycryptodome python3-pycountry python3-pysocks
 python3-pytest python3-mock python3-requests-mock python3-websocket-client
 python3-isodate python3-freezegun"
short_desc="Utility extracting streams from services, forked from livestreamer"
maintainer="wkuipers <wietse@kuiprs.nl>"
license="BSD-2-Clause"
homepage="https://streamlink.github.io/"
changelog="https://raw.githubusercontent.com/streamlink/streamlink/master/CHANGELOG.md"
distfiles="https://github.com/streamlink/streamlink/releases/download/${version}/streamlink-${version}.tar.gz"
checksum=e95588e222d1a7bd51e3171cd4bce84fd6f646418537aff37993d40f597810af
make_check=ci-skip # some tests fail when running as root

export STREAMLINK_USE_PYCOUNTRY=1

post_install() {
	vlicense LICENSE
}
