# SliTaz package receipt. PACKAGE="youtube-dl" VERSION="2020.05.08" CATEGORY="utilities" SHORT_DESC="Downloads videos from various streaming websites." MAINTAINER="gokhlayeh@slitaz.org" LICENSE="MIT" WEB_SITE="https://rg3.github.io/youtube-dl/" TARBALL="$PACKAGE-${VERSION//./-}" WGET_URL="https://yt-dl.org/downloads/$VERSION/youtube-dl" DEPENDS="python" BUILD_DEPENDS="python" # What is the latest version available today? current_version() { wget -O - https://pypi.org/project/youtube_dl/ 2>/dev/null | \ sed '/youtube_dl 2/!d;s|.*dl ||;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp $src/$TARBALL $fs/usr/bin/$PACKAGE chmod +x $fs/usr/bin/$PACKAGE }