makedeb
Emulate youtube-dl executables and modules with yt-dlp
Click here to go back to the commit logs for yt-dlp-drop-in.
Hash: 817ccaa88afffec275de666c67c3a871bf7854bc
Message: Invoke yt-dlp via script
diff --git a/.SRCINFO b/.SRCINFO
index 0fe2186..4bb2642 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = yt-dlp-drop-in
pkgdesc = Emulate youtube-dl executables with yt-dlp (youtube-dlp)
- pkgver = 1
+ pkgver = 1.1
pkgrel = 1
arch = any
license = MIT
depends = yt-dlp
provides = youtube-dl
conflicts = youtube-dl
+ source = youtube-dl-hook.sh
+ sha256sums = 78e4e0ae75e40fea540afd65c4d45788a14b14611d358578cb7fa20e574efb8d
pkgname = yt-dlp-drop-in
diff --git a/PKGBUILD b/PKGBUILD
index 3be2f3c..75c5579 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Minmo <com dot gmail at maroboromike>
+# Contributor: Sematre <sematre at gmx dot de>
pkgname=yt-dlp-drop-in
-pkgver=1
+pkgver=1.1
pkgrel=1
pkgdesc='Emulate youtube-dl executables with yt-dlp (youtube-dlp)'
arch=('any')
@@ -9,8 +10,9 @@ license=('MIT')
depends=('yt-dlp')
provides=('youtube-dl')
conflicts=('youtube-dl')
+source=('youtube-dl-hook.sh')
+sha256sums=('78e4e0ae75e40fea540afd65c4d45788a14b14611d358578cb7fa20e574efb8d')
package() {
- mkdir -p "${pkgdir}/usr/bin/"
- ln -s 'yt-dlp' "${pkgdir}/usr/bin/youtube-dl"
+ install -Dm755 "youtube-dl-hook.sh" "${pkgdir}/usr/bin/youtube-dl"
}
diff --git a/youtube-dl-hook.sh b/youtube-dl-hook.sh
new file mode 100644
index 0000000..b4f0839
--- /dev/null
+++ b/youtube-dl-hook.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/yt-dlp --compat-options youtube-dl "$@"