aboutsummaryrefslogtreecommitdiff
path: root/apks/yt-dlp
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-15 19:05:57 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-15 19:05:57 +0200
commit21ef387bf9c60e3eb04824a5b10ba158121e67fb (patch)
treef4eb9e078c70fbf10f972aecdf9665111a027f0a /apks/yt-dlp
parent7403735c2048c0129909f7e119a0256827c0ab5a (diff)
downloadapkbuilds-21ef387bf9c60e3eb04824a5b10ba158121e67fb.tar.gz
apkbuilds-21ef387bf9c60e3eb04824a5b10ba158121e67fb.tar.bz2
apkbuilds-21ef387bf9c60e3eb04824a5b10ba158121e67fb.zip
feat: Add yt-dlp edge package
Diffstat (limited to 'apks/yt-dlp')
-rw-r--r--apks/yt-dlp/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/apks/yt-dlp/APKBUILD b/apks/yt-dlp/APKBUILD
new file mode 100644
index 0000000..d4db189
--- /dev/null
+++ b/apks/yt-dlp/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Sodface <sod@sodface.com>
+pkgname=yt-dlp
+pkgver=2022.10.04
+pkgrel=1
+pkgdesc="Command-line program to download videos from YouTube"
+url="https://github.com/yt-dlp/yt-dlp"
+arch="noarch"
+license="Unlicense"
+depends="python3 py3-mutagen py3-websockets py3-certifi py3-brotli"
+makedepends="py3-setuptools"
+checkdepends="py3-flake8 py3-nose py3-pytest"
+subpackages="
+ $pkgname-doc
+ $pkgname-zsh-completion
+ $pkgname-bash-completion
+ $pkgname-fish-completion
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/yt-dlp/yt-dlp/releases/download/$pkgver/yt-dlp.tar.gz"
+builddir="$srcdir/$pkgname"
+
+build() {
+ python3 setup.py build
+
+ make completions
+}
+
+check() {
+ PYTHON=/usr/bin/python3 make offlinetest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # Install fish completion to the correct directory
+ rm -r "$pkgdir"/usr/share/fish/vendor_completions.d
+ install -Dm644 completions/fish/yt-dlp.fish \
+ -t "$pkgdir"/usr/share/fish/completions
+}
+
+sha512sums="
+5e24eea9739325349e975a92eed9d38605f62a423ae16127e1966bf96974419939f46986d7f61306f827edebd9f7408d048672e99c214bc59b2cdccad1938004 yt-dlp-2022.10.04.tar.gz
+"