blob: 057e1166d9603f7c7d4b2278463ae95ddd0fd90d (
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
33
34
35
36
37
38
|
# Maintainer: dianlujitao <dianlujitao at gmail dot com>
_pkgname=efm-langserver
pkgname=$_pkgname-git
pkgver=r41.8718b46
pkgrel=1
pkgdesc="General purpose Language Server"
url="https://github.com/mattn/efm-langserver"
makedepends=('go')
license=('MIT')
arch=('any')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/mattn/efm-langserver.git")
sha256sums=(SKIP)
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p "$srcdir"/src/github.com/mattn
ln -sf "$srcdir/$_pkgname" "$srcdir"/src/github.com/mattn/efm-langserver
}
build() {
# Required for go get
export GOPATH="$srcdir"
export GOBIN="$srcdir/bin"
cd "$GOPATH"/src
go get -v github.com/mattn/efm-langserver
}
package() {
install -Dm755 "$GOBIN"/efm-langserver $pkgdir/usr/bin/efm-langserver
}
|