summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZaZam2019-01-29 14:54:59 +0200
committerZaZam2019-01-29 14:54:59 +0200
commit9a656907d7ee2f4e62a5d4325c1c25e1567e0daf (patch)
tree26b2f5de6bb575e846c13413d837bbfeb20406fc
parentf499682c867b535b7409e750edf2e0bb151968e4 (diff)
downloadaur-9a656907d7ee2f4e62a5d4325c1c25e1567e0daf.tar.gz
allow configargparse<0.13.0
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD21
-rw-r--r--configargparse.patch12
3 files changed, 30 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 062639a7e1e..40aa8fd61a9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = yle-dl
pkgdesc = Download video and audio from YLE Areena.
pkgver = 20181221
- pkgrel = 2
+ pkgrel = 3
url = http://aajanki.github.io/yle-dl/
arch = any
license = GPL3
@@ -9,7 +9,7 @@ pkgbase = yle-dl
depends = ffmpeg
depends = python-attrs>=18.1.0
depends = python-attrs<18.3.0
- depends = python-configargparse=0.13.0
+ depends = python-configargparse>=0.13.0
depends = python-future
depends = python-lxml
depends = python-mini-amf
@@ -20,7 +20,9 @@ pkgbase = yle-dl
optdepends = rtmpdump: for downloading Areena audio streams
optdepends = youtube-dl: an alternative downloader backend to AdobeHDS.php
source = yle-dl-20181221.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-20181221.tar.gz
+ source = configargparse.patch
sha256sums = 8970960816151d0e296c0ab15b9371c0feea444567c59a7b2917bdf5f0de06fd
+ sha256sums = cfdf7268d945e1f03d5911acdf54900672083f08574cc1e887e134ae097e45d8
pkgname = yle-dl
diff --git a/PKGBUILD b/PKGBUILD
index 1858ec82cb9..5e6ed3b0c7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=yle-dl
pkgver=20181221
-pkgrel=2
+pkgrel=3
pkgdesc="Download video and audio from YLE Areena."
arch=('any')
url="http://aajanki.github.io/yle-dl/"
@@ -12,7 +12,7 @@ license=('GPL3')
depends=('ffmpeg'
'python-attrs>=18.1.0'
'python-attrs<18.3.0'
- 'python-configargparse=0.13.0'
+ 'python-configargparse>=0.13.0'
'python-future'
'python-lxml'
'python-mini-amf'
@@ -24,16 +24,23 @@ optdepends=('php: for downloading live TV and certain news broadcasts'
'rtmpdump: for downloading Areena audio streams'
'youtube-dl: an alternative downloader backend to AdobeHDS.php')
makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-${pkgver}.tar.gz")
-sha256sums=('8970960816151d0e296c0ab15b9371c0feea444567c59a7b2917bdf5f0de06fd')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/y/yle-dl/yle-dl-${pkgver}.tar.gz"
+ 'configargparse.patch'
+)
+sha256sums=('8970960816151d0e296c0ab15b9371c0feea444567c59a7b2917bdf5f0de06fd'
+ 'cfdf7268d945e1f03d5911acdf54900672083f08574cc1e887e134ae097e45d8')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i "${srcdir}/configargparse.patch"
+}
build() {
- cd "$pkgname-$pkgver"
+ cd $pkgname-$pkgver
python setup.py build
}
package() {
- cd "$pkgname-$pkgver"
+ cd $pkgname-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
-
diff --git a/configargparse.patch b/configargparse.patch
new file mode 100644
index 00000000000..0317d7e0eeb
--- /dev/null
+++ b/configargparse.patch
@@ -0,0 +1,12 @@
+diff -ura package.orig/yle-dl-20181221/setup.py package.new/yle-dl-20181221/setup.py
+--- yle-dl-20181221/setup.py 2018-11-03 11:51:18.000000000 +0200
++++ yle-dl-20181221/setup.py 2019-01-29 14:37:48.871293859 +0200
+@@ -39,7 +39,7 @@
+ include_package_data=True,
+ install_requires=[
+ 'pycryptodomex', 'requests', 'lxml', 'future', 'mini-amf',
+- 'attrs >= 18.1.0, < 18.3.0', 'ConfigArgParse == 0.13.0'
++ 'attrs >= 18.1.0, < 18.3.0', 'ConfigArgParse >= 0.13.0'
+ ] + ssl_sni_requires,
+ extras_require = {
+ 'youtubedl-backend': ['youtube_dl']