summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2aa65c5dee2460a16b8e226dbdbebcfa98f49b12 (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
39
40
41
42
43
44
45
46
47
# Maintainer: shanewstone gmail

pkgname=neovim-texlabconfig-opt-git
pkgver=r64.b817297
_pkgname=texlabconfig
pkgrel=1
pkgdesc='Forward and Inverse Search for Texlab and neovim'
arch=('x86_64')
url="https://github.com/f3fora/nvim-${_pkgname}"
license=('Unlicense')
depends=('neovim')
makedepends=('git' 'go')
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')


pkgver() {

    cd "${srcdir}/${_pkgname}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

build () {

    cd "${srcdir}/${_pkgname}"

    go build -trimpath -buildmode=pie .

}

package() {

    cd "${srcdir}/${_pkgname}"

    local _installpath="usr/local/share/nvim/site/pack/${_pkgname}/opt/${_pkgname}/"

    install -dvm755 "${pkgdir}/${_installpath}"

    cp -rvt "${pkgdir}/${_installpath}" doc lua

    install -dvm755 "${pkgdir}/usr/bin"

    cp -vt "${pkgdir}/usr/bin" nvim-texlabconfig

}