diff options
author | Magnus Boman | 2023-03-04 14:37:25 +0100 |
---|---|---|
committer | Magnus Boman | 2023-03-04 14:37:25 +0100 |
commit | 917ef15ef22a58da194e133b042a2c7082f4abee (patch) | |
tree | aaaf30b8298964d64f432139dcb2650f0bd90194 /PKGBUILD | |
parent | a15e10751fcbc7587501968319457ddd25bafad8 (diff) | |
download | aur-917ef15ef22a58da194e133b042a2c7082f4abee.tar.gz |
upgpkg: yt-dlp-git 2023.03.03.r6.g283a0b5bc-1
Replace ugly workaround with proper solution
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,7 +1,7 @@ # Maintainer: katt <magunasu.b97@gmail.com> pkgname=yt-dlp-git -pkgver=2023.03.03.r3.g4a6272c6d +pkgver=2023.03.03.r6.g283a0b5bc pkgrel=1 pkgdesc='A youtube-dl fork with additional features and fixes (git)' arch=(any) @@ -22,13 +22,8 @@ conflicts=("${pkgname%-git}") source=(git+"${url}".git) sha256sums=('SKIP') -prepare() { - # Ugly workaround to fix pkgver() reporting nightly.r0(...) - git -C "${pkgname%-git}" tag -d nightly -} - pkgver() { - git -C "${pkgname%-git}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git -C "${pkgname%-git}" describe --long --tags --exclude=nightly | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { |