summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsrael Roldan2020-09-28 12:26:31 -0500
committerIsrael Roldan2020-09-28 12:26:31 -0500
commit6f33eb9caf0a8477c42b22f8b18f4b886d831694 (patch)
tree1ea70af3bc32cd56f5bfdf4a327e3fc6bf3b306f
parent83b27eb7b787bac163e799f642f9d9e8a3e72472 (diff)
downloadaur-6f33eb9caf0a8477c42b22f8b18f4b886d831694.tar.gz
Released the v1.0. Fixed all the problems with the versioning right now it take the last annotated tag and add as a release version.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 6 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 536411989507..373935d0310b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = battery-discharging-beep-git
pkgdesc = Generate a sound when the battery is discharging.
- pkgver = r19.d860a26
- pkgrel = 2
+ pkgver = v1.0.r0.g1c67673
+ pkgrel = 1
url = https://github.com/airvzxf/linux-battery-discharging-beep.git
arch = x86_64
license = GPL-3.0
diff --git a/PKGBUILD b/PKGBUILD
index 0e6207186069..9fff00d64170 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_name=battery-discharging-beep
_git_project=linux-"${_name}"
pkgname="${_name}"-git
-pkgver=r19.d860a26
-pkgrel=2
+pkgver=v1.0.r0.g1c67673
+pkgrel=1
pkgdesc="Generate a sound when the battery is discharging."
arch=(x86_64)
url="https://github.com/airvzxf/${_git_project}.git"
@@ -16,12 +16,8 @@ source=("${_name}::git+${url}#branch=master")
md5sums=('SKIP')
pkgver() {
- cd "${srcdir}" || return
- (
- set -o pipefail
- git describe --long 2> /dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
- || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
+ cd "${_name}" || return
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {