diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-11 14:54:00 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-11 14:54:00 +0200 |
commit | a866c760ebb2e34bfc1562574b8c8ed1507efb07 (patch) | |
tree | cdd07e4733ee73e711efb4d4d35ef9a335f63b29 /community | |
parent | 30265c656c98de21782970b986054c5c2cd488bb (diff) | |
download | aports-a866c760ebb2e34bfc1562574b8c8ed1507efb07.tar.bz2 aports-a866c760ebb2e34bfc1562574b8c8ed1507efb07.tar.xz |
community/youtube-dl: rename _builddir and clarify license
Diffstat (limited to 'community')
-rw-r--r-- | community/youtube-dl/APKBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/community/youtube-dl/APKBUILD b/community/youtube-dl/APKBUILD index b654f34c9a..e26dad3fc7 100644 --- a/community/youtube-dl/APKBUILD +++ b/community/youtube-dl/APKBUILD @@ -9,7 +9,7 @@ pkgrel=0 pkgdesc="A small command-line program to download videos from YouTube." url="http://youtube-dl.org " arch="noarch" -license="Public Domain" +license="Unlicense" depends="python>=2.5 py-setuptools ffmpeg" subpackages=" $pkgname-doc @@ -17,35 +17,35 @@ subpackages=" $pkgname-bash-completion:bashcomp $pkgname-fish-completion:fishcomp" source="http://$pkgname.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname" -_builddir="$srcdir"/$pkgname prepare() { - cd "$_builddir" + 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" + cd "$builddir" python setup.py install --root="$pkgdir/" --optimize=1 || return 1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 } zshcomp() { - depends="" pkgdesc="Zsh completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel zsh" arch="noarch" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel zsh" - install -Dm644 "$_builddir"/$pkgname.zsh \ + install -Dm644 "$builddir"/$pkgname.zsh \ "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname || return 1 } bashcomp() { - depends="" pkgdesc="Bash completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel bash-completion" arch="noarch" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ mv "$pkgdir"/usr/share/bash-completion/completions/$pkgname.bash-completion \ @@ -53,10 +53,10 @@ bashcomp() { } fishcomp() { - depends="" pkgdesc="Fish completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel fish" arch="noarch" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel fish" mkdir -p "$subpkgdir"/usr/share/fish/completions/ mv "$pkgdir"/usr/share/fish/completions/$pkgname.fish \ |