diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | configargparse.patch | 12 |
3 files changed, 30 insertions, 9 deletions
@@ -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 @@ -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 000000000000..0317d7e0eeb4 --- /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'] |