diff options
author | csculley | 2019-09-10 01:29:07 -0400 |
---|---|---|
committer | csculley | 2019-09-10 01:29:07 -0400 |
commit | dcc4058e68be8e2d9db1fbf38beb149cca2f2713 (patch) | |
tree | 7013188605d41d6c2c0fe7bfce82f06b52646471 | |
parent | 79aaad808bc8219698c0c92477699211345359d4 (diff) | |
download | aur-sleepplan-git.tar.gz |
use plain pkgver
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -9,7 +9,7 @@ pkgbase = sleepplan-git depends = python3 provides = sleepplan conflicts = sleepplan - source = sleepplan::git+https://gitlab.com/csculley/sleepplan.git#branch=master + source = sleepplan-git::git+https://gitlab.com/csculley/sleepplan.git#branch=master md5sums = SKIP pkgname = sleepplan-git @@ -10,16 +10,12 @@ depends=('python3') makedepends=('git') provides=('sleepplan') conflicts=('sleepplan') -source=("sleepplan::git+https://gitlab.com/csculley/sleepplan.git#branch=master") +source=("sleepplan-git::git+https://gitlab.com/csculley/sleepplan.git#branch=master") md5sums=('SKIP') pkgver() { - mv sleepplan "$pkgname" cd "$pkgname" - ( 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)" - ) + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { |