diff options
author | B. Watson <urchlay@slackware.uk> | 2024-02-17 16:42:40 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-24 15:35:04 +0700 |
commit | e191d0e918a2c5d40e7c4182cea2e84e4896282f (patch) | |
tree | 16396b9cce89449fd7eca616abb3bd06f2bb4ffe | |
parent | 565864d9a5926ab75d7b06ccc4917131ff6bd6ce (diff) |
network/yt-dlp: Switch to versioned source.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/yt-dlp/yt-dlp.SlackBuild | 33 | ||||
-rw-r--r-- | network/yt-dlp/yt-dlp.info | 4 |
2 files changed, 11 insertions, 26 deletions
diff --git a/network/yt-dlp/yt-dlp.SlackBuild b/network/yt-dlp/yt-dlp.SlackBuild index 3f7d547cf844..b2684f8bdd83 100644 --- a/network/yt-dlp/yt-dlp.SlackBuild +++ b/network/yt-dlp/yt-dlp.SlackBuild @@ -12,6 +12,10 @@ # for clipgrab, haruna, xdman, ytfzf, and an optional dependency for # pipe-viewer, it has to exist on SBo. +# 20240217 bkw: switched to pythonhosted.org source tarball, thanks +# to Jeremy Hansen for finding this. Filename now has the version +# number in it, so no more caching problems for the download. Build +# had to change slightly as there's no more CONTRIBUTING file. # 20240216 bkw: updated for v2023.12.30 # 20231219 bkw: updated for v2023.11.16 # 20231031 bkw: updated for v2023.10.13 @@ -26,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=yt-dlp VERSION=${VERSION:-2023.12.30} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -55,32 +59,13 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM -tar xvf $CWD/$PRGNAM.tar.gz -cd $PRGNAM +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# 20230623 bkw: since the download filename doesn't have the version number -# in it, let's make sure we built the correct version. -cp yt_dlp/version.py v.py -echo 'print(__version__)' >> v.py - -REALVER="$( python3 ./v.py )" - -if [ "$VERSION" != "$REALVER" ]; then - cat <<EOF -*** -*** VERSION ($VERSION) doesn't match __version__ ($REALVER) -*** You built this with the wrong source tarball! Check the md5sum. -*** -EOF - exit 1 -fi - -rm -f v.py - # hardcoded paths. sed -i -e "s,share/doc/yt_dlp,doc/$PRGNAM-$VERSION," \ -e "s,share/man,man," \ @@ -103,7 +88,7 @@ gzip -9 $PKG/usr/man/man1/* # AUTHORS is 0 bytes in 2022.01.21 (still is, in 2023.03.04). PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKGDOC -cp -a CONTRIBUTORS LICENSE *.md $PKGDOC +cp -a LICENSE *.md $PKGDOC cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/network/yt-dlp/yt-dlp.info b/network/yt-dlp/yt-dlp.info index 1bcf6aaa180d..b896dfbbc608 100644 --- a/network/yt-dlp/yt-dlp.info +++ b/network/yt-dlp/yt-dlp.info @@ -1,8 +1,8 @@ PRGNAM="yt-dlp" VERSION="2023.12.30" HOMEPAGE="https://github.com/yt-dlp/yt-dlp" -DOWNLOAD="https://github.com/yt-dlp/yt-dlp/releases/download/2023.12.30/yt-dlp.tar.gz" -MD5SUM="4a32db6bfe42f651ed9ba4feffc43fec" +DOWNLOAD="https://files.pythonhosted.org/packages/source/y/yt-dlp/yt-dlp-2023.12.30.tar.gz" +MD5SUM="4ef3eee6daa8016a65f1a8c84e01fbec" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |