contrib/youtube-dl/Pkgfile

23 lines
624 B
Plaintext
Raw Normal View History

2014-04-09 10:51:00 +02:00
# Description: A command-line program to download videos from YouTube.com and a few more sites.
2017-01-31 10:03:05 +01:00
# URL: https://rg3.github.io/youtube-dl/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3
# Optional: python3-setuptools
2014-04-09 10:51:00 +02:00
name=youtube-dl
version=2020.01.01
2014-04-09 10:51:00 +02:00
release=1
2017-01-31 10:03:05 +01:00
source=(https://youtube-dl.org/downloads/$version/$name-$version.tar.gz)
2014-04-09 10:51:00 +02:00
build() {
cd $name
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --root=$PKG --optimize=1
2017-12-26 10:55:17 +01:00
2016-02-16 11:50:41 +01:00
rm -r $PKG/usr/share/doc
2017-12-26 10:55:17 +01:00
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
2018-09-02 14:20:26 +02:00
-name "youtube_dl-$version-py$pyv.egg-info" -delete
2017-12-26 10:55:17 +01:00
2014-04-09 10:51:00 +02:00
}