summaryrefslogtreecommitdiff
path: root/pcr/vim-autotag/PKGBUILD
blob: c8920aeceb5f66e812dd7bd9008b56d5bb69ad5b (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
# Contributor: Daniel Milewski <niitotantei@riseup.net>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

pkgname=vim-autotag
pkgver=r23.b2847e1
_gitcommit=b2847e15cb448e7e3194c500527fdfe042a4378a
pkgrel=1
pkgdesc='Automatically discover and "properly" update ctags files on save'
arch=(any)
url=https://github.com/craigemery/vim-autotag
license=(custom:vim)
groups=(vim-plugins)
makedepends=(git)
depends=(ctags vim)
source=(git+https://github.com/craigemery/$pkgname.git#commit=$_gitcommit)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir"/$pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package()
{
  cd "$srcdir/$pkgname"

  install -Dm 644 plugin/autotag.py "$pkgdir/usr/share/vim/vimfiles/plugin/autotag.py"
  install -Dm 644 plugin/autotag.vim "$pkgdir/usr/share/vim/vimfiles/plugin/autotag.vim"

  install -d "$pkgdir/usr/share/licenses/$pkgname"
  ln -s /usr/share/licenses/vim-runtime/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}