diff options
author | Rhinoceros | 2015-08-11 17:02:42 +1000 |
---|---|---|
committer | Rhinoceros | 2015-08-11 17:02:42 +1000 |
commit | c5f399ec5b38e3ad6023df4a64b0e73cf3f25d79 (patch) | |
tree | dc2a74f924bef5b2d0952135c99546238714ce0b /PKGBUILD | |
download | aur-c5f399ec5b38e3ad6023df4a64b0e73cf3f25d79.tar.gz |
Initial commit of 20140831-1
* Originally submitted by Andy Weidenbaum <archbaum@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b4789ce6d4db --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=vim-committia-git +pkgver=20140831 +pkgrel=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') +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-committia/README.md" + + msg '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 + + msg 'Cleaning up pkgdir...' + find "$pkgdir" -type d -name .git -exec rm -r '{}' + +} |