summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-09-18 11:02:28 +0200
committerlonkaars <loek@pipeframe.xyz>2021-09-18 11:02:28 +0200
commite166a33c4550df14c59a96433869b1a709a5f3b3 (patch)
treed6dcfbe52a734352831b29b7483a7a849c5d6bd1
parentcaad6a22cb7eb33c1ebd4759e9ca0a8dfbc4e401 (diff)
parent4cf8e90bddedb80a4c3673b65d6edc5263880cf1 (diff)
merge fabio's patchHEADmaster
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD38
2 files changed, 31 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6c568fe..4104152 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,17 @@
pkgbase = arduino-language-server-git
pkgdesc = An Arduino Language Server based on Clangd to Arduino code autocompletion
- pkgver = 1.0.1
+ pkgver = r239.134ca4d
pkgrel = 1
- epoch = 1
url = https://github.com/arduino/arduino-language-server
- arch = any
- license = APACHE
+ arch = x86_64
+ arch = i686
+ arch = i486
+ arch = pentium4
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = Apache
makedepends = git
makedepends = go
provides = arduino-language-server
diff --git a/PKGBUILD b/PKGBUILD
index f421d6d..228243a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,40 @@
# Maitainer: Loek Le Blansch <loek@pipeframe.xyz>
pkgname=arduino-language-server-git
-pkgver=1.0.1
+pkgver=r239.134ca4d
pkgrel=1
pkgdesc="An Arduino Language Server based on Clangd to Arduino code autocompletion"
-arch=('any')
-makedepends=('git' 'go')
+arch=(x86_64 i686 i486 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/arduino/arduino-language-server"
-license=('APACHE')
-source=(git+https://github.com/arduino/arduino-language-server)
-sha256sums=('SKIP')
+license=('Apache')
+makedepends=('git' 'go')
provides=('arduino-language-server')
conflicts=('arduino-language-server')
+source=(git+https://github.com/arduino/arduino-language-server)
+sha256sums=('SKIP')
pkgver() {
- cd ${pkgname%-git}
- git rev-parse HEAD | cut -c1-7
+ cd "${pkgname%-git}"
+ ( 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)"
+ )
}
build() {
- cd ${pkgname%-git}
-
- msg2 'Building...'
- go build
+ cd "${pkgname%-git}"
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ .
}
package() {
- cd ${pkgname%-git}
-
- msg2 'Installing executables...'
- install -Dm 755 arduino-language-server -t "$pkgdir"/usr/bin
+ cd "${pkgname%-git}"
+ install -Dm 755 arduino-language-server -t "$pkgdir"/usr/bin
- msg2 'Cleaning up pkgdir...'
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}