summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Jaara2015-07-08 15:59:51 +0300
committerJesse Jaara2015-07-08 15:59:51 +0300
commitf2e5b21243bbb4fc13cf3cc92fe6ce5158ca5925 (patch)
tree735c63749a2e27081c32ad250371842f9f042749
downloadaur-f2e5b21243bbb4fc13cf3cc92fe6ce5158ca5925.tar.gz
Import yle-dl to Aur4.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD35
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..69b9af1bdd3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = yle-dl
+ pkgdesc = Download video and audio from YLE Areena.
+ pkgver = 2.7.2
+ pkgrel = 1
+ url = http://aajanki.github.io/yle-dl/
+ arch = any
+ license = GPL2
+ depends = python2-crypto
+ depends = php
+ optdepends = python2-youtube-dl: new lightweight backend
+ optdepends = rtmpdump: old rtmpdump backend
+ conflicts = rtmpdump-yle
+ replaces = rtmpdump-yle
+ source = yle-dl-2.7.2.tar.gz::https://github.com/aajanki/yle-dl/tarball/2.7.2
+ source = AdobeHDS-2015.04.25.php::https://raw.githubusercontent.com/K-S-V/Scripts/9c1afcc4b452cb9bf75f8653495c80180e2bf086/AdobeHDS.php
+ md5sums = c5ed8912b9dd0aa9e3bcb0fa17f5344a
+ md5sums = a7dcf3b7d3c6330bbe7b1df1ee99caa1
+
+pkgname = yle-dl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4c5e910c52a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+#Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
+
+pkgname=yle-dl
+pkgver=2.7.2
+pkgrel=1
+_gitid=e9b547b
+pkgdesc="Download video and audio from YLE Areena."
+arch=("any")
+url="http://aajanki.github.io/yle-dl/"
+license=("GPL2")
+depends=('python2-crypto' 'php')
+optdepends=('python2-youtube-dl: new lightweight backend'
+ 'rtmpdump: old rtmpdump backend')
+conflicts=('rtmpdump-yle')
+replaces=('rtmpdump-yle')
+_adobehdsversion=2015.04.25
+source=("yle-dl-${pkgver}.tar.gz::https://github.com/aajanki/yle-dl/tarball/${pkgver}"
+ "AdobeHDS-${_adobehdsversion}.php::https://raw.githubusercontent.com/K-S-V/Scripts/9c1afcc4b452cb9bf75f8653495c80180e2bf086/AdobeHDS.php")
+md5sums=('c5ed8912b9dd0aa9e3bcb0fa17f5344a'
+ 'a7dcf3b7d3c6330bbe7b1df1ee99caa1')
+
+prepare() {
+ cd "${srcdir}/aajanki-${pkgname}-${_gitid}"
+
+ sed 's|/usr/local|/usr|' -i yle-dl
+ sed "s|'php'|'php', '-d extension=bcmath.so', '-d extension=curl.so'|" -i yle-dl
+}
+
+package() {
+ cd "${srcdir}/aajanki-${pkgname}-${_gitid}"
+
+ make prefix=/usr DESTDIR="${pkgdir}" install
+
+ install -D -m644 "${srcdir}/AdobeHDS-${_adobehdsversion}.php" "${pkgdir}/usr/share/yle-dl/AdobeHDS.php"
+}