aboutsummaryrefslogtreecommitdiffstats
path: root/community/youtube-dl
diff options
context:
space:
mode:
authordai9ah <dai9ah@protonmail.com>2018-03-01 23:44:45 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-03-04 17:12:04 +0100
commit980839cfb7e39846b091bc4fdb5468cd8af7b514 (patch)
tree21e875fcaac8c30e54360a6ec67dd7d3ef8fb304 /community/youtube-dl
parent037b7eed5f707b8054e0da1d24ed4be87fbbdbd6 (diff)
downloadaports-980839cfb7e39846b091bc4fdb5468cd8af7b514.tar.bz2
aports-980839cfb7e39846b091bc4fdb5468cd8af7b514.tar.xz
community/youtube-dl: switch to python3
Diffstat (limited to 'community/youtube-dl')
-rw-r--r--community/youtube-dl/APKBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/community/youtube-dl/APKBUILD b/community/youtube-dl/APKBUILD
index aeb52e4eca..f59dad238b 100644
--- a/community/youtube-dl/APKBUILD
+++ b/community/youtube-dl/APKBUILD
@@ -4,12 +4,12 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=youtube-dl
pkgver=2018.03.03
-pkgrel=0
+pkgrel=1
pkgdesc="A small command-line program to download videos from YouTube"
url="http://youtube-dl.org"
arch="noarch"
license="Unlicense"
-depends="python2 py-setuptools ffmpeg"
+depends="python3 ffmpeg"
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp
@@ -20,8 +20,9 @@ builddir="$srcdir/$pkgname"
prepare() {
cd "$builddir"
- sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
- sed -i 's|etc/fish/completions|share/fish/completions|' setup.py
+ sed -i setup.py \
+ -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
+ -e 's|etc/fish/completions|share/fish/completions|'
}
check() {
@@ -31,8 +32,7 @@ check() {
package() {
cd "$builddir"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
}
zshcomp() {