42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
|
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
pkgname=youtube-dlc
|
|
pkgver=2020.10.09
|
|
pkgrel=0
|
|
pkgdesc="Command-line program to download videos from YouTube"
|
|
url="https://youtube-dl.org/"
|
|
arch="noarch"
|
|
license="Unlicense"
|
|
depends="python3 py3-setuptools"
|
|
checkdepends="py3-flake8 py3-nose"
|
|
subpackages="$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/blackjack4494/youtube-dlc/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i \
|
|
-e 's|etc/bash_completion.d|share/bash-completion/completions|' \
|
|
-e 's|etc/fish/completions|share/fish/completions|' \
|
|
"$builddir"/setup.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHON=/usr/bin/python3 make offlinetest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="5d8df9e8b95bec63351c998dcd3ac61562b02a570d0b2aa03f7244354c8db1c9d0ab1c089df4cc621908d213f2bdd8933879b76a822bcdb5396c6db65c25c71e youtube-dlc-2020.10.09.tar.gz"
|