Package Details: betterdiscordctl-git 1.6.0.r34.g6433a5b-1

Git Clone URL: https://aur.archlinux.org/betterdiscordctl-git.git (read-only, click to copy)
Package Base: betterdiscordctl-git
Description: A utility for managing BetterDiscord on Linux
Upstream URL: https://github.com/bb010g/betterdiscordctl
Keywords: betterdiscord discord
Licenses: MIT
Conflicts: betterdiscordctl
Provides: betterdiscordctl
Submitter: bb010g
Maintainer: bb010g (ObserverOfTime)
Last Packager: ObserverOfTime
Votes: 7
Popularity: 0.39
First Submitted: 2018-01-12 05:04
Last Updated: 2019-06-02 16:06

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

katt commented on 2020-07-25 18:39

Realised this PKGBUILD produces the wrong pkgver (1.7.0.r37.g785ad01-1) but it is the same commit as the release of 1.7.0, here's my fixed PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index bcaf50f..9d8529a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,13 @@
 # Co-maintainer: ObserverOfTime <chronobserver@disroot.org>

 pkgname=betterdiscordctl-git
-pkgver=1.6.0.r34.g6433a5b
+pkgver=1.7.0.r0.g785ad01
 pkgrel=1
 pkgdesc="A utility for managing BetterDiscord on Linux"
 arch=('any')
 url="https://github.com/bb010g/betterdiscordctl"
 license=('MIT')
 depends=('git')
-makedepends=('git')
 provides=("${pkgname%-git}")
 conflicts=("${pkgname%-git}")
 source=('git+https://github.com/bb010g/betterdiscordctl.git')
@@ -22,9 +21,7 @@ prepare() {

 pkgver() {
   cd "$srcdir/${pkgname%-git}"
-  printf '%s.r%s.g%s' \
-    "$(sed -n 's/^VERSION=//p' "${pkgname%-git}")" \
-    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }

 package() {