aboutsummaryrefslogtreecommitdiffstats
path: root/testing/streamlink/APKBUILD
blob: 69c5ed3982d96f0085760fcdb425934410b9bb72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=streamlink
pkgver=1.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-pycryptodome py3-pycountry py3-requests py3-pysocks
	py3-websocket-client py3-isodate rtmpdump"
makedepends="py3-setuptools py3-sphinx py3-recommonmark"
checkdepends="py3-pytest py3-pytest-cov py3-codecov py3-coverage py3-freezegun
	py3-requests-mock py3-mock"
subpackages="$pkgname-doc"
source="streamlink-$pkgver.tar.gz::https://github.com/streamlink/streamlink/archive/$pkgver.tar.gz"

build() {
	export STREAMLINK_USE_PYCOUNTRY=1
	python3 setup.py build
	python3 setup.py build_sphinx -b man
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 build/sphinx/man/streamlink.1 \
		"$pkgdir"/usr/share/man/man1/streamlink.1
}

sha512sums="50a5f3476327f88beab9d5ca1a303b65268eadfa4bf62599fe0994a42d38d07fc1033aa9d7d7695f0ec0a6e9c668c90de85f8ce363323c843f391d92b4c56130  streamlink-1.3.1.tar.gz"