summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsumt2018-04-07 21:34:23 +0300
committersumt2018-04-07 21:39:13 +0300
commit706e6f8afd4fc0a3a88a914679a44013b442f254 (patch)
tree85003250df76be5ae1edb5be0db9b247f005826c
parent83e3225afc4b52c3da066f032b82c6a1e596683e (diff)
downloadaur-706e6f8afd4fc0a3a88a914679a44013b442f254.tar.gz
php optional dependency
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD15
2 files changed, 8 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cc2df6f1137..8a3a6cddf53 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = yle-dl-git
pkgdesc = Download video and audio from YLE Areena.
- pkgver = 2.31.r10.g61df175
+ pkgver = 2.31.r15.g92f8239
pkgrel = 1
url = http://aajanki.github.io/yle-dl/
arch = any
@@ -8,7 +8,6 @@ pkgbase = yle-dl-git
makedepends = git
makedepends = python-setuptools
depends = ffmpeg
- depends = php
depends = python-mini-amf
depends = python-pycryptodomex
depends = python-future
@@ -16,9 +15,10 @@ pkgbase = yle-dl-git
depends = python-pysocks
depends = python-requests
depends = wget
- optdepends = youtube-dl: an alternative downloader backend to AdobeHDS.php
+ optdepends = php: for downloading live TV and certain news broadcasts
optdepends = rtmpdump: for downloading Areena audio streams
- provides = yle-dl=2.31.r10.g61df175
+ optdepends = youtube-dl: an alternative downloader backend to AdobeHDS.php
+ provides = yle-dl=2.31.r15.g92f8239
conflicts = yle-dl
source = yle-dl-git::git+https://github.com/aajanki/yle-dl.git
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index c1105343da8..86429dbbd41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,10 +8,11 @@ pkgdesc="Download video and audio from YLE Areena."
arch=("any")
url="http://aajanki.github.io/yle-dl/"
license=("GPL3")
-depends=('ffmpeg' 'php' 'python-mini-amf' 'python-pycryptodomex'
+depends=('ffmpeg' 'python-mini-amf' 'python-pycryptodomex'
'python-future' 'python-lxml' 'python-pysocks' 'python-requests' 'wget')
-optdepends=('youtube-dl: an alternative downloader backend to AdobeHDS.php'
- 'rtmpdump: for downloading Areena audio streams')
+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=('git' 'python-setuptools')
provides=(${pkgname%-git}=$pkgver)
conflicts=(${pkgname%-git})
@@ -23,14 +24,6 @@ pkgver() {
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare() {
- cd "$pkgname"
- # Enable required PHP extensions by directly
- # appending them to the hds_binary arguments list.
- # OR enable them globaly in php.ini
- sed -i "s|\['php'|\['php', '-dextension=bcmath.so', '-dextension=curl.so'|" yledl/downloaders.py
-}
-
package() {
cd "$pkgname"
python setup.py install --root="$pkgdir/" --optimize=1