summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3885ce0817fb075303c80a6657feb7f2a2eedb9e (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
# Maintainer: mnabila nblid48[at]gmail[dot]com

pkgname=sqls-git
pkgver=0.2.22.r0.g620def1
pkgrel=1
pkgdesc="SQL language server written in Go."
url="https://github.com/lighttiger2505/sqls"
license=('MIT')
source=("${pkgname}::git+https://github.com/lighttiger2505/sqls.git")
arch=('x86_64')
sha256sums=('SKIP')
depends=('go')
conflicts=('sqls-bin')

pkgver() {
  cd "${pkgname}"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $srcdir/$pkgname
    go build
}

package() {
    cd $srcdir/$pkgname
    install -Dm755 sqls "${pkgdir}/usr/bin/sqls"
}

#vim: syntax=sh