summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg2014-11-03 21:18:19 +0100
committerJohannes Löthberg2015-06-01 16:03:44 +0200
commit08501f78c67f9a4177d34c74f0bb05467d067de5 (patch)
tree3f2dbdbbcc22d25d529d1df0dc05314fd3d9aa78
downloadaur-08501f78c67f9a4177d34c74f0bb05467d067de5.tar.gz
youtube-dl-git: import for @halosghost
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD41
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a2e519c8de1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 14:54:54 UTC 2015
+pkgbase = youtube-dl-git
+ pkgdesc = A small command-line program to download videos from YouTube.com and a few more sites
+ pkgver = 2014.11.02.1.r12.g278143d
+ pkgrel = 1
+ url = http://rg3.github.com/
+ arch = any
+ license = custom
+ makedepends = git
+ depends = python
+ depends = python-setuptools
+ optdepends = ffmpeg: for video post-processing
+ provides = youtube-dl
+ conflicts = youtube-dl
+ source = git://github.com/rg3/youtube-dl.git
+ md5sums = SKIP
+
+pkgname = youtube-dl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2aba969524d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+pkgname=youtube-dl-git
+pkgver=2014.11.02.1.r12.g278143d
+pkgrel=1
+
+pkgdesc='A small command-line program to download videos from YouTube.com and a few more sites'
+url="http://rg3.github.com/${_pkgname}"
+arch=('any')
+license=('custom')
+
+depends=('python' 'python-setuptools')
+makedepends=('git')
+
+optdepends=('ffmpeg: for video post-processing')
+
+provides=('youtube-dl')
+conflicts=('youtube-dl')
+
+source=('git://github.com/rg3/youtube-dl.git')
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd youtube-dl
+ git describe | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd youtube-dl
+ sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
+}
+
+package() {
+ cd youtube-dl
+
+ python devscripts/bash-completion.py
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/share/bash-completion/completions/youtube-dl.bash-completion \
+ "$pkgdir"/usr/share/bash-completion/completions/youtube-dl
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}