summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip Ponjavic2017-03-19 00:38:57 +0100
committerJosip Ponjavic2017-03-19 00:38:57 +0100
commitdf2c9f64a323b6ae87ad5a8f8e154a741c236104 (patch)
treef6717676c0c77943eaaadd3d836c31fd6fb1d75c
parent5a3ce2919c4cf5a63a59343daa2834ce9d999604 (diff)
downloadaur-df2c9f64a323b6ae87ad5a8f8e154a741c236104.tar.gz
add option to use pycrypto and pycountry
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD34
2 files changed, 31 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 036010c93e6..e6f62c2ea8b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
pkgbase = streamlink-git
pkgdesc = CLI program that launches streams from various streaming services in a custom video player (livestreamer fork)
- pkgver = 0.4.0.r0.g0871d22
+ pkgver = 0.4.0.r23.g951edb3
pkgrel = 1
url = https://streamlink.github.io/
arch = any
license = BSD
checkdepends = python-mock
- checkdepends = python-pycountry
checkdepends = python-pytest
makedepends = git
makedepends = python-setuptools
makedepends = python-sphinx
+ depends = python-pycryptodome
depends = python-iso3166
depends = python-iso639
- depends = python-pycryptodome
depends = python-requests
depends = rtmpdump
optdepends = ffmpeg: Required to play streams that are made up of separate audio and video streams, eg. YouTube 1080p+
diff --git a/PKGBUILD b/PKGBUILD
index 32e772fabdc..c9ee0096721 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,36 @@
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
+_use_pycrypto="no"
+_use_pycountry="no"
+
pkgname=streamlink-git
-pkgver=0.4.0.r0.g0871d22
+pkgver=0.4.0.r23.g951edb3
pkgrel=1
pkgdesc='CLI program that launches streams from various streaming services in a custom video player (livestreamer fork)'
arch=('any')
url='https://streamlink.github.io/'
license=('BSD')
-depends=("python-"{iso3166,iso639,pycryptodome,requests} 'rtmpdump')
-checkdepends=("python-"{mock,pycountry,pytest})
+
+if [ "$_use_pycrypto" = "yes" ]; then
+ depends+=('python-crypto')
+ conflicts+=('python-pycryptodome')
+else
+ depends+=('python-pycryptodome')
+fi
+
+if [ "$_use_pycountry" = "yes" ]; then
+ depends+=('python-pycountry')
+else
+ depends+=('python-iso3166' 'python-iso639')
+fi
+
+depends+=('python-requests' 'rtmpdump')
+checkdepends=("python-"{mock,pytest})
makedepends=('git' "python-"{setuptools,sphinx})
optdepends=('ffmpeg: Required to play streams that are made up of separate audio and video streams, eg. YouTube 1080p+'
'python-librtmp: Required by the ustreamtv plugin to be able to use non-mobile streams.')
provides=('streamlink')
-conflicts=('streamlink')
+conflicts+=('streamlink')
source=('git+https://github.com/streamlink/streamlink.git')
sha512sums=('SKIP')
@@ -24,7 +41,14 @@ pkgver() {
build() {
cd streamlink
- #export STREAMLINK_USE_PYCOUNTRY=1
+ if [ "$_use_pycrypto" = "yes" ]; then
+ msg "Using pycrypto..."
+ export STREAMLINK_USE_PYCRYPTO="true"
+ fi
+ if [ "$_use_pycountry" = "yes" ]; then
+ msg "Using pycountry..."
+ export STREAMLINK_USE_PYCOUNTRY="true"
+ fi
python setup.py build_sphinx -b man
}