added youtube-dl

This commit is contained in:
Ella-0 2021-05-21 10:46:14 +01:00
parent 2e949cd90f
commit 63672bc731

29
pkgs/youtube-dl/build.sh Normal file
View 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
}