summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrim Kriegor2019-08-05 18:21:38 +0100
committerGrim Kriegor2019-08-05 18:21:38 +0100
commit6f9e75d45e4d730b3343ea94463ed797dfbbdaf3 (patch)
treeae9afcc56c8a72bef39f25037708da88bfe20331
parent807f8cd0635f166d25a012aaeaec4c5fb6aec188 (diff)
downloadaur-6f9e75d45e4d730b3343ea94463ed797dfbbdaf3.tar.gz
Handle the removal of package.json when getting the version
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 3 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d4239c5c63..4922d30eaa1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = kotlin-language-server-git
pkgdesc = Smart code completion, diagnostics and more for Kotlin using the Language Server Protocol
- pkgver = 0.1.13.r458.125b3fd
+ pkgver = r576.e6f7637
pkgrel = 1
url = https://github.com/fwcd/KotlinLanguageServer.git
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index b8fc3dbb44c..17217ddb123 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=kotlin-language-server-git
_pkgname=kotlin-language-server
-pkgver=0.1.13.r458.125b3fd
+pkgver=r576.e6f7637
pkgrel=1
pkgdesc="Smart code completion, diagnostics and more for Kotlin using the Language Server Protocol"
arch=(any)
@@ -17,8 +17,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
- printf "%s.r%s.%s" \
- "$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)" \
+ printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}