summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d4cc1cc80ac55d716037a2157ca35af250aa715 (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: Junxuan Liao <mikeljx at 126 dot com>

pkgname=vim-just-git
_pkgname=vim-just
pkgver=r381.e0978aa
pkgrel=1
pkgdesc='Vim syntax files for justfiles'
url='https://github.com/NoahTheDuke/vim-just'
arch=('any')
license=('MIT')
depends=('vim-plugin-runtime')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=("${_pkgname}::git+$url.git")
sha512sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
    cd ${_pkgname}
    install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -dm 755 "${pkgdir}/usr/share/vim/vimfiles"
    cp -dr --no-preserve=ownership {ftdetect,ftplugin,indent,syntax} \
        "${pkgdir}/usr/share/vim/vimfiles"
}