blob: 723b5fd9b60b19ac923447916fc2616c00f8d132 (
plain)
1 # Description: CLI program to access YouTub and other data content
2 # URL: https://github.com/yt-dlp/yt-dlp
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-setuptools
5
6 name=yt-dlp
7 version=2021.12.25
8 release=1
9 source=(https://github.com/${name}/${name}/archive/\
10 ${version}/${name}-${version}.tar.gz)
11
12 build() {
13 cd ${name}-${version}
14
15 python3 setup.py build
16
17 cat > ./yt-dlp.1 <<- \!
18 .Dd December 25, 2021
19 .Dt YT-DLP 1
20 .Os
21 .
22 .Sh NAME
23 .Nm yt-dlp.1
24 .Nd CLI program to access YouTub and other data content
25 .
26 .Bd -literal
27 !
28 sed -E -e '/^# USAGE AND OPTIONS/,/^#### Removed/p;d' < README.md >> yt-dlp.1
29 echo '.Ed' >> ./yt-dlp.1
30
31 python3 setup.py install --root="${PKG}" --optimize=1 --skip-build
32
33 rm -fr "${PKG}"/usr/share/{bash-completion,doc,fish,zsh}
34 }
35
36 # s-sh-mode
|