blob: 8144b4b23712a114a51804def92f813214d75647 (
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
|
# Maintainer: eNV25 <env252525@gmail.com>
# Contributor: Jeremy Ruten <jeremy.ruten@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=vim-toml-git
pkgver=r77.89bcca8
pkgrel=1
epoch=1
pkgdesc="Vim syntax for TOML"
arch=('any')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
url="https://github.com/cespare/vim-toml"
license=('MIT')
source=("${pkgname%-git}::git+https://github.com/cespare/vim-toml#branch=main")
sha256sums=('SKIP')
provides=('vim-toml')
conflicts=('vim-toml')
install=vimdoc.install
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${pkgname%-git}"
echo 'Installing documentation...'
install -Dm 644 README.md "$pkgdir/usr/share/doc/vim-toml/README.md"
echo 'Installing appdirs...'
install -dm 755 "$pkgdir/usr/share/vim/vimfiles"
for _appdir in ftdetect syntax; do
cp -dpr --no-preserve=ownership $_appdir "$pkgdir/usr/share/vim/vimfiles/$_appdir"
done
echo 'Cleaning up pkgdir...'
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
|