summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32dbefcb82881fe2b208510622bbb557506e357a (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: Sainnhe Park <sainnhe@gmail.com>
_variant='vim'
_extname=coc-vimtex
_packdir="usr/share/vim/vimfiles/pack/coc/start/${_extname}"
url='https://github.com/neoclide/coc-vimtex'
pkgdesc='vimtex integration for coc.nvim'

pkgname="${_variant}-${_extname}-git"
provides=("${_variant}-${_extname}")
conflicts=("${_variant}-${_extname}")
arch=('any')
depends=("${_variant}-coc" "vim-vimtex")
makedepends=('git')
license=('MIT')
source=("${_extname}::git+${url}.git")
pkgver=1.0.4.r2.g993436f
pkgrel=1
sha256sums=('SKIP')

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

package() {
    cd "${srcdir}/${_extname}"
    find . -type f -exec \
        install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \;
    chown -R root:root "${pkgdir}"
}