summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75b9877727bb294bee7905ba439bdda655eaa485 (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
# Maintainer: Stijn Seghers <stijnseghers at gmail dot com>

pkgname=vim-oz
pkgver=1.3.r6.g4a04881
pkgrel=1
pkgdesc='Oz syntax highlighting and formatting for Vim'
arch=('any')
url='https://github.com/Procrat/oz.vim'
license=('unknown')
depends=('vim')
makedepends=('git')

source=("$pkgname"::'git+https://github.com/Procrat/oz.vim.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

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

  _vim_dir="${pkgdir}/usr/share/vim/vimfiles"
  install -Dm644 ftdetect/oz.vim "${_vim_dir}/ftdetect/oz.vim"
  install -Dm644 ftplugin/oz.vim "${_vim_dir}/ftplugin/oz.vim"
  install -Dm644 syntax/oz.vim "${_vim_dir}/syntax/oz.vim"
}