summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57a18c480d8cc1f7139c5d5cb407a09183234bf0 (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
# Maintainer: Adam S Levy <adam@aslevy.com>
pkgname=vim-tickscript-git
_pkgname=${pkgname%-git}
pkgver=r8.399e332
pkgrel=2
pkgdesc="Vim syntax highlighting for TICKscript"
arch=('any')
url="https://github.com/nathanielc/vim-tickscript"
license=('MIT')
depends=('vim')
optdepends=('tickfmt')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/nathanielc/vim-tickscript')
md5sums=('SKIP')

pkgver() {
        cd "$srcdir/$_pkgname"
        # Git, no tags available
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
        cd "$srcdir/$_pkgname"
        local vimdir="$pkgdir/usr/share/vim/vimfiles"
        install --directory "$vimdir"
        for dir in autoload/ ftdetect/ plugin/ syntax/; do
                cp --recursive "${dir}" "$vimdir"
        done
}