summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-09-18 08:38:05 +0200
committerlonkaars <loek@pipeframe.xyz>2021-09-18 08:38:05 +0200
commit133a61d52f4a4568acf8288e9a3f1019f6961a79 (patch)
tree5cc557c0a58dd88ca6164e14ae425bc0c725d267
parent4e2e83730fcaadd00773c9247eee3284b1f59a8d (diff)
fix pkgbuild
-rw-r--r--PKGBUILD11
1 files changed, 5 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ec6cae6..f421d6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maitainer: Loek Le Blansch <loek@pipeframe.xyz>
pkgname=arduino-language-server-git
-pkgver=1.0.0
+pkgver=1.0.1
pkgrel=1
-epoch=1
pkgdesc="An Arduino Language Server based on Clangd to Arduino code autocompletion"
arch=('any')
makedepends=('git' 'go')
@@ -15,19 +14,19 @@ provides=('arduino-language-server')
conflicts=('arduino-language-server')
pkgver() {
- cd ${pkgname}
- git describe --tags | sed "s+-+.r+" | tr - .
+ cd ${pkgname%-git}
+ git rev-parse HEAD | cut -c1-7
}
build() {
- cd ${pkgname}
+ cd ${pkgname%-git}
msg2 'Building...'
go build
}
package() {
- cd ${pkgname}
+ cd ${pkgname%-git}
msg2 'Installing executables...'
install -Dm 755 arduino-language-server -t "$pkgdir"/usr/bin