diff options
author | Alex Denes <caskd@redxen.eu> | 2020-10-10 19:46:34 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-10-11 00:08:37 +0000 |
commit | 536647a40fa375d4d94706e488029bb23292cc68 (patch) | |
tree | 7f70dd6f388759b271f3083e0351e9f038d19771 | |
parent | f323d1a13aa4f3dcc1a39c80df37484e8cc9d2fd (diff) | |
download | alpine_aports-536647a40fa375d4d94706e488029bb23292cc68.tar.bz2 alpine_aports-536647a40fa375d4d94706e488029bb23292cc68.tar.xz alpine_aports-536647a40fa375d4d94706e488029bb23292cc68.zip |
testing/youtube-dlc: new aport
-rw-r--r-- | testing/youtube-dlc/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/youtube-dlc/APKBUILD b/testing/youtube-dlc/APKBUILD new file mode 100644 index 0000000000..f0d195a65d --- /dev/null +++ b/testing/youtube-dlc/APKBUILD | |||
@@ -0,0 +1,40 @@ | |||
1 | # Contributor: Peter Bui <pnutzh4x0r@gmail.com> | ||
2 | # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> | ||
3 | # Contributor: Timo Teräs <timo.teras@iki.fi> | ||
4 | # Contributor: Alex Denes <caskd@redxen.eu> | ||
5 | # Maintainer: Alex Denes <caskd@redxen.eu> | ||
6 | pkgname=youtube-dlc | ||
7 | pkgver=2020.10.09 | ||
8 | pkgrel=0 | ||
9 | pkgdesc="Command-line program to download videos from YouTube" | ||
10 | url="https://blackjack4494.github.io/youtube-dlc" | ||
11 | arch="noarch" | ||
12 | license="Unlicense" | ||
13 | depends="python3 py3-setuptools" | ||
14 | checkdepends="py3-flake8 py3-nose" | ||
15 | subpackages="$pkgname-doc | ||
16 | $pkgname-bash-completion | ||
17 | $pkgname-fish-completion" | ||
18 | source="$pkgname-$pkgver.tar.gz::https://github.com/blackjack4494/youtube-dlc/archive/$pkgver/youtube-dlc-$pkgver.tar.gz" | ||
19 | |||
20 | prepare() { | ||
21 | default_prepare | ||
22 | sed -i \ | ||
23 | -e 's|etc/bash_completion.d|share/bash-completion/completions|' \ | ||
24 | -e 's|etc/fish/completions|share/fish/completions|' \ | ||
25 | ./setup.py | ||
26 | } | ||
27 | |||
28 | build() { | ||
29 | python3 setup.py build | ||
30 | } | ||
31 | |||
32 | check() { | ||
33 | PYTHON=/usr/bin/python3 make offlinetest | ||
34 | } | ||
35 | |||
36 | package() { | ||
37 | python3 setup.py install --prefix=/usr --root="$pkgdir" | ||
38 | } | ||
39 | |||
40 | sha512sums="5d8df9e8b95bec63351c998dcd3ac61562b02a570d0b2aa03f7244354c8db1c9d0ab1c089df4cc621908d213f2bdd8933879b76a822bcdb5396c6db65c25c71e youtube-dlc-2020.10.09.tar.gz" | ||