diff options
author | sumt | 2017-07-12 14:10:49 +0300 |
---|---|---|
committer | sumt | 2017-07-12 14:10:49 +0300 |
commit | f98df433260cbc01565911c74378fabd0c8b7a33 (patch) | |
tree | e4a03007027117e3051d74c514b0cdaa214d8528 | |
download | aur-f98df433260cbc01565911c74378fabd0c8b7a33.tar.gz |
Init PKGBUILD
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fe912b5581d1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = yle-dl-git + pkgdesc = Download video and audio from YLE Areena. + pkgver = 2.18.r4.g7696802 + pkgrel = 1 + url = http://aajanki.github.io/yle-dl/ + arch = any + license = GPL3 + makedepends = git + 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 + source = yle-dl-git::git+https://github.com/aajanki/yle-dl.git + md5sums = SKIP + +pkgname = yle-dl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2d90de1dbbc9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: sumt <sumt at sci dot fi> +# Contributor: Jesse Jaara <gmail.com: jesse.jaara> + +pkgname=yle-dl-git +pkgver=2.18.r4.g7696802 +pkgrel=1 +pkgdesc="Download video and audio from YLE Areena." +arch=("any") +url="http://aajanki.github.io/yle-dl/" +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") +source=("$pkgname::git+https://github.com/aajanki/yle-dl.git") +md5sums=("SKIP") + +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +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 +} + +package() { + cd "$pkgname" + make prefix=/usr DESTDIR="${pkgdir}" install +} + |