summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip Ponjavic2020-04-29 19:14:47 +0200
committerJosip Ponjavic2020-04-29 19:14:47 +0200
commit92b1679a6616b2d89c60ba8a0e25c3b050439c17 (patch)
treea7ba3dd0a57dedc4fdb9b5f658fd507fb9818b9a
parent448e5058a5046f5e744d5690115ca3923ab415d8 (diff)
downloadaur-92b1679a6616b2d89c60ba8a0e25c3b050439c17.tar.gz
simplify pkgbuild like it is for community package
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD34
2 files changed, 11 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f771fa4f5e..d88c7142a25 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = streamlink-git
pkgdesc = CLI program that launches streams from various streaming services in a custom video player (livestreamer fork)
- pkgver = 1.3.0.r0.g9253fc51
+ pkgver = 1.4.1.r5.g3f24fde7
pkgrel = 1
url = https://streamlink.github.io/
arch = any
@@ -9,14 +9,15 @@ pkgbase = streamlink-git
checkdepends = python-mock
checkdepends = python-pytest
checkdepends = python-requests-mock
- makedepends = git
makedepends = python-recommonmark
+ makedepends = python-setuptools
+ makedepends = python-sphinx
+ makedepends = git
depends = python-pycryptodome
- depends = python-iso3166
- depends = python-iso639
depends = python-isodate
- depends = python-pysocks
+ depends = python-pycountry
depends = python-requests
+ depends = python-pysocks
depends = python-websocket-client
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 6798c2eafcf..dadc38f6984 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,18 @@
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
-_use_pycrypto="no"
-_use_pycountry="no"
-
pkgname=streamlink-git
-pkgver=1.3.0.r0.g9253fc51
+pkgver=1.4.1.r5.g3f24fde7
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')
-
-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-"{isodate,pysocks,requests,websocket-client} 'rtmpdump')
+depends=("python-"{pycryptodome,isodate,pycountry,requests,pysocks,websocket-client} 'rtmpdump')
checkdepends=("python-"{freezegun,mock,pytest,requests-mock})
-makedepends=('git' 'python-recommonmark')
+makedepends=("python-"{recommonmark,setuptools,sphinx} 'git')
optdepends=('ffmpeg: Required to play streams that are made up of separate audio and video streams, eg. YouTube 1080p+')
provides=("${pkgname%-*}")
-conflicts+=("${pkgname%-*}")
+conflicts=("${pkgname%-*}")
source=("${pkgname%-*}::git+https://github.com/streamlink/streamlink.git")
sha512sums=('SKIP')
@@ -40,14 +23,7 @@ pkgver() {
build() {
cd "${pkgname%-*}"
- 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
+ export STREAMLINK_USE_PYCOUNTRY="true"
python setup.py build
python setup.py build_sphinx -b man
}