diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-09-18 08:38:05 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-09-18 08:38:05 +0200 |
commit | 133a61d52f4a4568acf8288e9a3f1019f6961a79 (patch) | |
tree | 5cc557c0a58dd88ca6164e14ae425bc0c725d267 /PKGBUILD | |
parent | 4e2e83730fcaadd00773c9247eee3284b1f59a8d (diff) |
fix pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |