network/yt-dlp: Updated for version 2023.06.22, add version check.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
27cc447ad5
commit
5bb844a8ec
|
@ -12,6 +12,7 @@
|
|||
# dependency for pipe-viewer (and might be useful as a dep for other
|
||||
# things), it has to exist on SBo.
|
||||
|
||||
# 20230623 bkw: updated for v2023.06.22, added version check
|
||||
# 20230402 bkw: updated for v2023.03.04
|
||||
# 20230222 bkw: updated for v2023.02.17
|
||||
# 20230104 bkw: updated for v2023.01.02
|
||||
|
@ -19,7 +20,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=yt-dlp
|
||||
VERSION=${VERSION:-2023.03.04}
|
||||
VERSION=${VERSION:-2023.06.22}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -56,6 +57,25 @@ 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," \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="yt-dlp"
|
||||
VERSION="2023.03.04"
|
||||
VERSION="2023.06.22"
|
||||
HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
|
||||
DOWNLOAD="https://github.com/yt-dlp/yt-dlp/releases/download/2023.03.04/yt-dlp.tar.gz"
|
||||
MD5SUM="392ead72a00cda0ade947af40fb91039"
|
||||
DOWNLOAD="https://github.com/yt-dlp/yt-dlp/releases/download/2023.06.22/yt-dlp.tar.gz"
|
||||
MD5SUM="f919a7396be83139dc80fffba2c53e06"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue