summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Rudenko2019-01-10 12:56:29 +0300
committerMikhail Rudenko2019-01-10 12:56:29 +0300
commitc1974b7eac89940daea984279cee8e7ffddc6c7e (patch)
tree31868944adafab6a9c3ea8dc1b09f571e5678c66
downloadaur-c1974b7eac89940daea984279cee8e7ffddc6c7e.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD33
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..268ad01b004
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = bingo-git
+ pkgdesc = A Go language server that speaks Language Server Protocol, largely inspired by go-langserver (git version).
+ pkgver = 1.1.0.r95.gc4b7017
+ pkgrel = 1
+ url = https://github.com/saibing/bingo
+ arch = x86_64
+ license = MIT
+ makedepends = go
+ makedepends = git
+ provides = bingo
+ conflicts = bingo
+ source = bingo::git://github.com/saibing/bingo
+ sha256sums = SKIP
+
+pkgname = bingo-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c82997f54da
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+#Maintainer: Mikhail Rudenko <mike.rudenko@gmail.com>
+_pkgname=bingo
+pkgname=$_pkgname-git
+pkgver=1.1.0.r95.gc4b7017
+pkgrel=1
+pkgdesc='A Go language server that speaks Language Server Protocol, largely inspired by go-langserver (git version).'
+arch=('x86_64')
+url="https://github.com/saibing/bingo"
+license=('MIT')
+makedepends=('go' 'git')
+source=($_pkgname::git://github.com/saibing/bingo)
+sha256sums=('SKIP')
+provides=($_pkgname)
+conflicts=($_pkgname)
+
+pkgver() {
+ cd $_pkgname
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $_pkgname
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o $_pkgname .
+}
+
+package() {
+ cd $_pkgname
+ install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
+}