summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 610e307abccf4fffd7b53bf3e072f5e67a9f7bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Georg Nagel <g.schlmm at gmail dot com>

_gitname=laravel-ls
pkgname="${_gitname}-git"
pkgver=r234.a93641a
pkgrel=1
pkgdesc='Laravel Language Server written in go.'
arch=(x86_64)
url="https://github.com/${_gitname}/${_gitname}"
license=("GPL-3.0")
makedepends=(go git make)
source=(
  "git+https://github.com/${_gitname}/${_gitname}.git"
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd $_gitname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd $_gitname
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
  make
}

package() {
  install -vDm755 $_gitname/build/laravel-ls -t "$pkgdir/usr/bin"
}