summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe379425e23da264684f392ae3919b96ed149cd0 (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
# Maintainer: taotieren <admin@taotieren.com>

pkgbase=vim-pangu-git
pkgname=vim-pangu-git
pkgver=1.2.0.r11.gb721011
pkgrel=17
pkgdesc="『盘古之白』中文排版自动规范化的 Vim 插件"
arch=(any)
url="https://github.com/hotoo/pangu.vim"
license=('Vim')
groups=()
provides=(${pkgbase%-git})
conflicts=(${pkgbase%-git})
replaces=()
depends=(vim)
makedepends=(git)
optdepends=()
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
options=()

pkgver() {
    cd "${srcdir}/${pkgname}/"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare()
{
    git -C "${srcdir}/${pkgname}" clean -dfx
}

package() {
    _installpath="${pkgdir}/usr/share/vim/vimfiles"
    install -dm755 ${_installpath}

    cd "${srcdir}"/${pkgname}
    cp -r  doc plugin "${_installpath}"

#     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}