summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 540bc4a868d11c2fc01664d7a804a6321f9151b1 (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: Andy Weidenbaum <archbaum@gmail.com>

pkgname=vim-eunuch
_gitname='vim-eunuch'
pkgver=v1.0.5.g6a4d193
pkgrel=1
pkgdesc="Vim sugar for the UNIX shell commands that need it the most, by tpope"
arch=('any')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
url="https://github.com/tpope/vim-eunuch"
license=('custom:vim')
source=(git+https://github.com/tpope/vim-eunuch)
sha256sums=('SKIP')
provides=('vim-eunuch')
conflicts=('vim-eunuch')
install=vimdoc.install

pkgver() {
  cd $_gitname
  git describe --always | sed 's|-|.|g'
}

prepare() {
  cd $_gitname
  
  msg 'Removing unneeded files...'
  rm -f README.markdown
}

package() {
  cd $_gitname

  msg 'Installing...'
  install -dm 755 ${pkgdir}/usr/share/vim/vimfiles/
  tar -c . | tar -x -C ${pkgdir}/usr/share/vim/vimfiles

  msg 'Cleaning up pkgdir...'
  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
  find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
}