2014-04-09 10:51:00 +02:00
|
|
|
# Description: A command-line program to download videos from YouTube.com and a few more sites.
|
2020-11-01 08:01:20 +01:00
|
|
|
# URL: https://youtube-dl.org/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-01-05 02:15:46 +01:00
|
|
|
# Depends on: python3-setuptools
|
2014-04-09 10:51:00 +02:00
|
|
|
|
|
|
|
name=youtube-dl
|
2021-03-02 15:03:35 +01:00
|
|
|
version=2021.03.02
|
2014-04-09 10:51:00 +02:00
|
|
|
release=1
|
2020-11-01 08:01:20 +01:00
|
|
|
source=(https://youtube-dl.org/downloads/$version/$name-$version.tar.gz)
|
2014-04-09 10:51:00 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name
|
2021-02-06 04:21:47 +01:00
|
|
|
|
|
|
|
export PYTHONHASHSEED=0
|
|
|
|
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
|
|
|
|
sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
|
|
|
|
|
2020-01-04 12:31:05 +01:00
|
|
|
/usr/bin/python3 setup.py build
|
2021-02-06 04:21:47 +01:00
|
|
|
/usr/bin/python3 setup.py install --root=$PKG --optimize=1 --skip-build
|
|
|
|
|
|
|
|
/usr/bin/python3 -mcompileall $PKG
|
|
|
|
/usr/bin/python3 -O -m compileall $PKG
|
|
|
|
/usr/bin/python3 -OO -m compileall $PKG
|
2017-12-26 10:55:17 +01:00
|
|
|
|
2016-02-16 11:50:41 +01:00
|
|
|
rm -r $PKG/usr/share/doc
|
2014-04-09 10:51:00 +02:00
|
|
|
}
|