blob: 90a15be69269672682797e1ec2a557df52ac0701 (
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
43
|
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=vim-committia-git
pkgver=r134.1d28828
pkgrel=2
epoch=1
pkgdesc='A Vim plugin for more pleasant editing of Git commit messages'
arch=('any')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
url='https://github.com/rhysd/committia.vim'
license=('MIT')
source=(${pkgname%-git}::git+https://github.com/rhysd/committia.vim)
sha256sums=('SKIP')
provides=('vim-committia')
conflicts=('vim-committia')
pkgver() {
cd ${pkgname%-git}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd ${pkgname%-git}
# Installing documentation
install -Dm 644 README.md "$pkgdir/usr/share/doc/vim-committia/README.md"
# Installing appdirs
install -dm 755 "$pkgdir/usr/share/vim/vimfiles"
for _appdir in autoload plugin; do
cp -dpr --no-preserve=ownership $_appdir "$pkgdir/usr/share/vim/vimfiles/$_appdir"
done
# Cleaning up pkgdir
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
# Install licence
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname%-git}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|