SHARE
TWEET

$pkgver fix for PKGBUILD of AUR package, woeusb-git

jamesan Feb 16th, 2018 384 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 7b310a4..2374c61 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -1,7 +1,9 @@
  6.  # Maintainer: Salvador PardiƱas <darkfm@vera.com.uy>
  7. +# Contributor: James An <james@jamesan.ca>
  8. +
  9.  pkgname=woeusb-git
  10. -pkgver=r689.584e43c
  11. -pkgrel=2
  12. +pkgver=3.1.4.r13.gfc91ec1
  13. +pkgrel=1
  14.  pkgdesc="A Linux program to create Windows USB stick installer from a real Windows DVD or an image"
  15.  arch=('x86_64')
  16.  url="https://github.com/slacka/WoeUSB"
  17. @@ -23,8 +25,10 @@ md5sums=('SKIP')
  18.  
  19.  pkgver() {
  20.     cd "$srcdir/WoeUSB"
  21. -# Git, no tags available
  22. -   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. +   ( set -o pipefail
  24. +       git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r/;s/-/./g' ||
  25. +       printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  26. +   )
  27.  }
  28.  
  29.  prepare() {
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top