diff options
author | xiota | 2024-02-18 14:10:08 -0800 |
---|---|---|
committer | xiota | 2024-02-18 14:10:08 -0800 |
commit | 52ae8865d6081b9928c0a58afd31dae3d6f3fc2d (patch) | |
tree | 4063ff31dc05b9f68ed75f49565acbe1c97768c9 /PKGBUILD | |
parent | 7b4b59e5454546afb185db8e41776fb9d73490eb (diff) | |
download | aur-yt-dlp-drop-in.tar.gz |
2023.12.30
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,8 +3,8 @@ # Contributor: Sematre <sematre at gmx dot de> pkgname=yt-dlp-drop-in -pkgver=2023.10.13 -pkgrel=2 +pkgver=2023.12.30 +pkgrel=1 pkgdesc='Provide both youtube-dl command and python imports using yt-dlp' arch=('any') license=('Unlicense') @@ -24,13 +24,13 @@ sha256sums=( ) pkgver() { - LANG=C LC_ALL=C pacman -Si yt-dlp | sed -nE 's@^Version\s+: (.*)-.*$@\1@p' + LANG=C LC_ALL=C pacman -Si yt-dlp | grep '^Version' | head -1 | sed -nE 's@^Version\s+: (.*)-.*$@\1@p' } package() { depends=('yt-dlp') - install -Dm755 "${srcdir:?}/youtube-dl.py" "${pkgdir:?}/usr/bin/youtube-dl" + install -Dm755 "$srcdir/youtube-dl.py" "$pkgdir/usr/bin/youtube-dl" local _sitepackages="$(python -c 'import site; print(site.getsitepackages()[0])')" install -dm755 "${pkgdir:?}${_sitepackages:?}" |