blob: 73c875907855a78ab0a0bcc5bbc0b64326e215fe (
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
42
|
#Maintainer: Lothar_m <lothar_m at riseup dot net>
# Borrows heavily on vim-csv-git PKGBUILD by Andy Weidenbaum
pkgname='vim-ledger-git'
_gitname='vim-ledger'
pkgver=30.r0.g2bfbe22
pkgrel=2
arch=('i686' 'x86_64')
url="https://www.github.com/ledger/vim-ledger"
depends=('vim')
#optdepends=('')
makedepends=('git')
groups=('vim-plugins')
license=('GPL')
pkgdesc="Vim filetype plugin for ledger files."
provides=(vim-ledger)
conflicts=(vim-ledger)
source=(${pkgname%-git}::git+https://github.com/ledger/vim-ledger)
md5sums=('SKIP')
install=vimdoc.install
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short | sed "s|-||g"
}
package() {
cd ${pkgname%-git}
msg 'Installing documentation...'
install -Dm 644 README.md "$pkgdir/usr/share/doc/vim-ledger/README"
msg 'Installing appdirs...'
install -dm 755 "$pkgdir/usr/share/vim/vimfiles"
for _appdir in autoload compiler doc ftdetect ftplugin indent syntax; do
cp -dpr --no-preserve=ownership $_appdir "$pkgdir/usr/share/vim/vimfiles/$_appdir"
done
msg 'Cleaning up pkgdir...'
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
|