summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD71
1 files changed, 32 insertions, 39 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8fbddc12381..35ec8ffb9a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,51 +1,44 @@
-# Maintainer : flu
-# Contributor : Frederic Bezies <fredbezies at gmail dot com>
-# Contributor : baskerville <nihilhill at gmail dot com>
-# Contributor : Smola
-# Contributor : yan12125
+# Maintainer: Lari Tikkanen <lartza@wippies.com>
-_name=youtube-dl
-_branch=master
-
-pkgname=$_name-git
-pkgver=2016.03.26.e68d3a0
+pkgname=youtube-dl-git
+_gitname="youtube-dl"
+pkgver=2016.04.06.r7.a1ff3cd
pkgrel=1
-
-pkgdesc='A small command-line program to download videos from YouTube.com and a few more sites - git version'
-url="http://rg3.github.io/youtube-dl"
+pkgdesc="A small command-line program to download videos from YouTube.com and a few more sites (git version)"
arch=('any')
+url="https://github.com/rg3/youtube-dl"
license=('custom')
-
-depends=('python' 'python-setuptools')
-makedepends=('git' 'pandoc')
-optdepends=('ffmpeg: for video post-processing')
-
-provides=("$_name")
-conflicts=("$_name")
-
-pkgver() {
- DATE=$(date +%Y.%m.%d)
- HASH=$(git ls-remote -h https://github.com/rg3/$_name $_branch | cut -c1-7)
- echo $DATE.$HASH
+depends=('python')
+makedepends=('git' 'python-setuptools' 'pandoc')
+optdepends=('ffmpeg: for video post-processing'
+ 'rtmpdump: for rtmp streams support'
+ 'atomicparsley: for embedding thumbnails into m4a files')
+provides=("youtube-dl")
+conflicts=("youtube-dl")
+source=('git+https://github.com/rg3/youtube-dl.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$_gitname
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
-source=("$pkgname-$(pkgver).zip::https://github.com/rg3/$_name/archive/$_branch.zip")
-sha512sums=(SKIP)
-
prepare() {
- cd $_name-$_branch
+ cd $srcdir/$_gitname
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
- sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
+ sed -i 's|etc/fish/completions|share/fish/completions|' setup.py
}
-package() {
- cd $_name-$_branch
-
- make bash-completion zsh-completion fish-completion README.txt youtube-dl.1
- python setup.py install --root="$pkgdir" --optimize=1
+build() {
+ cd $srcdir/$_gitname
+ make pypi-files zsh-completion
+}
- mv "$pkgdir"/usr/share/bash-completion/completions/youtube-dl.bash-completion \
- "$pkgdir"/usr/share/bash-completion/completions/youtube-dl
- install -D -m644 youtube-dl.zsh "$pkgdir"/usr/share/zsh/site-functions/_youtube-dl
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+package() {
+ cd $srcdir/$_gitname
+ 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 -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}