Simplify pkgver() to require tags
This commit is contained in:
parent
9539d83c85
commit
c759919367
@ -33,11 +33,7 @@ sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/moonlock"
|
||||
if git describe --long --tags >/dev/null 2>&1; then
|
||||
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
|
||||
else
|
||||
printf "0.0.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
fi
|
||||
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user