summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd93c57a9b953364de5b3d5a3d9fab0b79cd2f70 (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
# Maintainer: Liao Junxuan <mikeljx at 126 dot com>
_pkgname=vim-localvimrc
pkgname=${_pkgname}-git
pkgver=r246.841a064
pkgrel=1
pkgdesc="Search local vimrc files in the tree and load them."
arch=('any')
url="https://github.com/embear/vim-localvimrc"
license=('GPL-3.0-or-later')
groups=()
depends=('vim-plugin-runtime')
makedepends=('git')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "${srcdir}/${_pkgname}"

    local _installpath="${pkgdir}/usr/share/vim/vimfiles"
    install -d "${_installpath}"
    find doc plugin -type f -exec \
        install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/{}" \;
}