summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Uhl2021-03-31 16:39:14 +0200
committerFelix Uhl2021-03-31 16:39:14 +0200
commitc19b3fe4483609d87464d4ba07db0e0a135dcd83 (patch)
treed48cd23a8aa34b693374ad53972eb763d48d5ad8
parente7de1125448418bf2dec65236a1a5122d5c51711 (diff)
downloadaur-c19b3fe4483609d87464d4ba07db0e0a135dcd83.tar.gz
Change versioning scheme to match upstream
See https://aur.archlinux.org/packages/uswsusp-git/#comment-799559
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
2 files changed, 4 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4a404e8f9a3..5a667106939 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = uswsusp-git
pkgdesc = Userspace software suspend - git checkout
- pkgver = 0.r501.g668c5f7
- pkgrel = 8
+ pkgver = 1.0
+ pkgrel = 9
url = http://suspend.sourceforge.net/
install = uswsusp.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 5a562637771..52989e63224 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
# Contributor: cantabile <cantabile dot desu at gmail dot com>
pkgname=uswsusp-git
-pkgver=0.r501.g668c5f7
-pkgrel=8
+pkgver=1.0
+pkgrel=9
pkgdesc='Userspace software suspend - git checkout'
arch=('i686' 'x86_64')
url='http://suspend.sourceforge.net/'
@@ -30,16 +30,6 @@ sha256sums=('SKIP'
'd8a4f646d0785adf038830f14564f20ea307a27f225c17eb581a2e4d5e0c8519'
'fc303c78d3ae0794f8a267e9b8b9fec665b7413f396310d1a19efedcd2a1760d')
-pkgver() {
- cd suspend-utils/
-
- if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
- echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
- else
- echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
- fi
-}
-
build() {
cd suspend-utils/