summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59b6463270f4cd58d5eba631131c750dac60e92d (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: Shengyu Zhang <la@archlinuxcn.org>

_pkgname=vim-goyacc
pkgname=${_pkgname}-git
pkgver=0.5.44a2912
pkgrel=1
pkgdesc='Vim Filetype Support for goyacc.'
arch=('any')
url='https://github.com/rhysd/vim-goyacc'
license=('custom:vim')
depends=('vim')
groups=('vim-plugins')
source=("git+https://github.com/rhysd/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
    cd ${pkgname%-git}
    echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    for d in ftdetect indent syntax; do
        cd ${d}
        for f in *.vim; do
            install -Dm644 "${f}" "${pkgdir}/usr/share/vim/vimfiles/${d}/${f}"
        done
        cd ..
    done
}