aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-05-01 21:00:45 +0000
committerTimo Teräs <timo.teras@iki.fi>2018-05-09 09:23:49 +0300
commit0a8287b60072f967e84f9026a9df4f338601852c (patch)
tree936944c7bfeb629a2fdda3d16107cc3d7db77ade
parent8eca73e136f48aadb8b675179aacc4947573982c (diff)
downloadaports-0a8287b60072f967e84f9026a9df4f338601852c.tar.bz2
aports-0a8287b60072f967e84f9026a9df4f338601852c.tar.xz
community/youtube-dl: improve abuild
-rw-r--r--community/youtube-dl/APKBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/community/youtube-dl/APKBUILD b/community/youtube-dl/APKBUILD
index 2f5ad2855d..193601d7aa 100644
--- a/community/youtube-dl/APKBUILD
+++ b/community/youtube-dl/APKBUILD
@@ -11,8 +11,7 @@ arch="noarch"
license="Unlicense"
depends="python3 ffmpeg"
options="!check" # FIXME: run provided tests
-subpackages="
- $pkgname-doc
+subpackages="$pkgname-doc
$pkgname-zsh-completion:zshcomp
$pkgname-bash-completion:bashcomp
$pkgname-fish-completion:fishcomp"
@@ -20,10 +19,11 @@ source="https://github.com/rg3/$pkgname/releases/download/$pkgver/$pkgname-$pkgv
builddir="$srcdir/$pkgname"
prepare() {
- cd "$builddir"
- sed -i setup.py \
+ default_prepare
+ sed -i \
-e 's|etc/bash_completion.d|share/bash-completion/completions|' \
- -e 's|etc/fish/completions|share/fish/completions|'
+ -e 's|etc/fish/completions|share/fish/completions|' \
+ "$builddir"/setup.py
}
package() {