diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-28 01:00:56 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-04-02 15:09:00 +0300 |
commit | dae72482518acaaba30e3b43ef5a0985ad72d26b (patch) | |
tree | 846de2d1a0e343da8ecc7912a6fdf19a0d8a1c88 /community/youtube-dl | |
parent | c1d498f737a23bc1250e1d4eea76b9ee614c7293 (diff) | |
download | aports-dae72482518acaaba30e3b43ef5a0985ad72d26b.tar.bz2 aports-dae72482518acaaba30e3b43ef5a0985ad72d26b.tar.xz |
community/youtube-dl: make ffmpeg optional
- Build and package python byte-code.
- ffmpeg is not a hard dependency and is mainly required for trascoding
media assets.
Diffstat (limited to 'community/youtube-dl')
-rw-r--r-- | community/youtube-dl/APKBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/community/youtube-dl/APKBUILD b/community/youtube-dl/APKBUILD index f39c1b4fdf..9d28bac31d 100644 --- a/community/youtube-dl/APKBUILD +++ b/community/youtube-dl/APKBUILD @@ -9,7 +9,8 @@ pkgdesc="Command-line program to download videos from YouTube" url="https://youtube-dl.org" arch="noarch" license="Unlicense" -depends="ffmpeg python3 py3-setuptools" +depends="python3" +makedepends="python3-dev py3-setuptools" options="!check" # FIXME: run provided tests subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp @@ -26,6 +27,11 @@ prepare() { "$builddir"/setup.py } +build() { + cd "$builddir" + python3 setup.py build +} + package() { cd "$builddir" python3 setup.py install --root="$pkgdir/" --optimize=1 |