diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-25 12:11:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-25 12:11:45 +0000 |
commit | a8de79e8432f2e55cdf956c14b0e064ca49497fc (patch) | |
tree | 85de5e0eb902390e38ea385df52aae91f5d228da /community/youtube-dl/APKBUILD | |
parent | 7dbf839188831964dc6a819d5c37e8549fa51619 (diff) | |
download | aports-a8de79e8432f2e55cdf956c14b0e064ca49497fc.tar.bz2 aports-a8de79e8432f2e55cdf956c14b0e064ca49497fc.tar.xz |
community/youtube-dl: move from main
Diffstat (limited to 'community/youtube-dl/APKBUILD')
-rw-r--r-- | community/youtube-dl/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/community/youtube-dl/APKBUILD b/community/youtube-dl/APKBUILD new file mode 100644 index 0000000000..11e7ad978a --- /dev/null +++ b/community/youtube-dl/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Peter Bui <pnutzh4x0r@gmail.com> +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Contributor: Łukasz Jendrysik <scadu@yandex.com> +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=youtube-dl +pkgver=2015.11.19 +pkgrel=0 +pkgdesc="A small command-line program to download videos from YouTube." +url="http://youtube-dl.org " +arch="noarch" +license="Public Domain" +depends="python>=2.5 py-setuptools ffmpeg" +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bashcomp + $pkgname-fish-completion:fishcomp" +source="http://$pkgname.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname +prepare() { + cd "$_builddir" + sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py || return 1 + sed -i 's|etc/fish/completions|share/fish/completions|' setup.py || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --root="$pkgdir/" --optimize=1 || return 1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + arch="noarch" + + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ + mv "$pkgdir"/usr/share/bash-completion/completions/$pkgname.bash-completion \ + "$subpkgdir"/usr/share/bash-completion/completions/$pkgname || return 1 +} + +fishcomp() { + depends="" + pkgdesc="Fish completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel fish" + arch="noarch" + + mkdir -p "$subpkgdir"/usr/share/fish/completions/ + mv "$pkgdir"/usr/share/fish/completions/$pkgname.fish \ + "$subpkgdir"/usr/share/fish/completions/ || return 1 +} + +md5sums="b4ca8ae28279abe12c272344cbe10332 youtube-dl-2015.11.19.tar.gz" +sha256sums="2ed713c995a5cd837205eefa35d5df49179fa90cf634a4f222a31f2bde94e668 youtube-dl-2015.11.19.tar.gz" +sha512sums="ca43aa8484bc63ed4a02cd5125d3ab971cadfdeb2c747d33e8485e6aa88942effc279e4dc17f38622ece57381eedc8e3b8a37c12002664a6df97bac3579c5fca youtube-dl-2015.11.19.tar.gz" |