How to build youtube-dl for salix 14.2 Xfce?
Posted: 16. Feb 2023, 22:12
				
				What to do to restore youtube-dl for salix 14.2 Xfce?
Got a complete dropout and am lost.
Please help me.
			Got a complete dropout and am lost.
Please help me.
Linux for the Lazy Slacker
https://forum.salixos.org/
Code: Select all
#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>
pkgname=smtube
pkgver=21.10.0
pkgrel=1dj
source=("http://sourceforge.net/projects/smtube/files/SMTube/$pkgver/smtube-$pkgver.tar.bz2" "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp")
docs=("*.txt" "changelog")
url=http://smplayer.sourceforge.net
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"smtube (search and download videos from YouTube)"
"SMTube is an application that searches and downloads videos from"
"YouTube. It can use a variety of video players for playing back"
"content."
)
build() {
	cd $startdir/src/$pkgname-$pkgver
	if [ ${USE_QT5:-no} = yes ]; then
		QMAKE=qmake-qt5
		LRELEASE=lrelease-qt5
	else
		QMAKE=qmake
		LRELEASE=lrelease
	fi
	sed -i "s/youtube-dl/yt-dlp/g"  $startdir/src/$pkgname-$pkgver/src/*.cpp || return 1
	
	make \
		QMAKE=$QMAKE \
		LRELEASE=$LRELEASE \
		PREFIX=/usr \
		DOC_PATH="\\\"/usr/doc/$pkgname-$pkgver/\\\"" \
		QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\""  || return 1
	make install \
		PREFIX=/usr \
		DOC_PATH=/usr/doc/$pkgname-$pkgver \
		DESTDIR=$startdir/pkg || return 1
	
	    mkdir -p $startdir/pkg/usr/bin/ || return 1
        cp $startdir/src/yt-dlp $startdir/pkg/usr/bin/ || return 1
        chmod +x $startdir/pkg/usr/bin/yt-dlp
	
	# fix ownerships and permissions
	chown -R root:root $startdir/pkg
} 
Code: Select all
USE_QT5=yes fakeroot slkbuild -XCode: Select all
sudo spkg smtube-21.10.0-x86_64-1dj.txzCode: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dlHello gapan,gapan wrote: ↑17. Feb 2023, 13:37 You don't really need a package for this. The download instructions from its homepage should work just fine:
http://ytdl-org.github.io/youtube-dl/download.html
Code: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
Code: Select all
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
vHi guys,gapan wrote: ↑17. Feb 2023, 13:37 You don't really need a package for this. The download instructions from its homepage should work just fine:
http://ytdl-org.github.io/youtube-dl/download.html
Code: Select all
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
Code: Select all
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlpCode: Select all
sudo chmod a+rx /usr/local/bin/yt-dlp