added youtube-dl
This commit is contained in:
parent
2e949cd90f
commit
63672bc731
1 changed files with 29 additions and 0 deletions
29
pkgs/youtube-dl/build.sh
Normal file
29
pkgs/youtube-dl/build.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
pkgver=2021.04.07
|
||||||
|
pkgname=youtube-dl
|
||||||
|
deps=python
|
||||||
|
bad=""
|
||||||
|
|
||||||
|
fetch() {
|
||||||
|
curl -L "https://github.com/ytdl-org/youtube-dl/releases/download/2021.04.07/youtube-dl-2021.04.07.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||||
|
tar -xf $pkgname-$pkgver.tar.gz
|
||||||
|
mv $pkgname $pkgname-$pkgver
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
python setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
python setup.py install --prefix=/usr --root=$pkgdir
|
||||||
|
}
|
||||||
|
|
||||||
|
package_doc() {
|
||||||
|
echo $pkgdir
|
||||||
|
}
|
||||||
|
|
||||||
|
license() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
cat LICENSE
|
||||||
|
}
|
Loading…
Reference in a new issue