summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD11
2 files changed, 7 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cc74d046984..80fce2ff344 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
pkgbase = yle-dl-git
pkgdesc = Download video and audio from YLE Areena.
- pkgver = 2.19.r0.g7696802
+ pkgver = 2.20.r2.g74df6a1
pkgrel = 1
url = http://aajanki.github.io/yle-dl/
arch = any
license = GPL3
makedepends = git
+ makedepends = python2-setuptools
depends = ffmpeg
depends = php
depends = php-mcrypt
depends = python2-crypto
optdepends = python2-youtube-dl: an alternative downloader backend
optdepends = rtmpdump: for downloading Areena audio streams
- provides = yle-dl=2.19.r0.g7696802
+ provides = yle-dl=2.20.r2.g74df6a1
conflicts = yle-dl
source = yle-dl-git::git+https://github.com/aajanki/yle-dl.git
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 874502f3776..4f9e81c2bab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
pkgname=yle-dl-git
-pkgver=2.19.r0.g7696802
+pkgver=2.20.r2.g74df6a1
pkgrel=1
pkgdesc="Download video and audio from YLE Areena."
arch=("any")
@@ -11,7 +11,7 @@ license=("GPL3")
depends=('ffmpeg' 'php' 'php-mcrypt' 'python2-crypto')
optdepends=('python2-youtube-dl: an alternative downloader backend'
'rtmpdump: for downloading Areena audio streams')
-makedepends=("git")
+makedepends=('git' 'python2-setuptools')
provides=(${pkgname%-git}=$pkgver)
conflicts=(${pkgname%-git})
source=("$pkgname::git+https://github.com/aajanki/yle-dl.git")
@@ -24,16 +24,13 @@ pkgver() {
prepare() {
cd "$pkgname"
- # Replace the hardcoded path for AdobeHDS.php
- sed -i 's|/usr/local/share/yle-dl/AdobeHDS.php|/usr/share/yle-dl/AdobeHDS.php|g' yle-dl
# Enable required PHP extensions by directly
# appending them to the hds_binary arguments list.
# OR enable them globaly in php.ini
- sed -i "s|^hds_binary = \['php'|hds_binary = \['php', '-dextension=bcmath.so', '-dextension=curl.so', '-dextension=mcrypt.so'|" yle-dl
+ sed -i "s|^hds_binary = \['php'|hds_binary = \['php', '-dextension=bcmath.so', '-dextension=curl.so', '-dextension=mcrypt.so'|" yledl/yledl.py
}
package() {
cd "$pkgname"
- make prefix=/usr DESTDIR="${pkgdir}" install
+ python2 setup.py install --root="$pkgdir/" --optimize=1
}
-