iglunix/extra/youtube-dl/build.sh

30 lines
496 B
Bash
Raw Normal View History

2021-05-21 09:46:14 +00:00
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
}