summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a3ecd42c3eb8346fa3c35f84c3ae9b3a7631e59 (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
# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgname=vim-polyglot-git
pkgver=v4.4.3.r9.g56121b4
pkgrel=1
pkgdesc='A solid language pack for Vim.'
arch=('any')
url='https://github.com/sheerun/vim-polyglot'
license=('MIT')
depends=('vim')
makedepends=('git')
provides=('vim-polyglot')
conflicts=('vim-polyglot')
source=('git+https://github.com/sheerun/vim-polyglot.git')
sha256sums=('SKIP')

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

package() {
    cd "${srcdir}/vim-polyglot"
    find after autoload compiler ctags extras ftdetect ftplugin indent syntax -type f -exec \
        install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/pack/vim-polyglot/start/vim-polyglot/{}" \;
}