summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a7ca73cbab356a3bacc16e5ee326e9a46fbcfef (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
41
# Maintainer: Adam Schadler <ajschadler@gmail.com>
_pkgname=vim-lumen
pkgname=${_pkgname}-git
pkgver=v1.0.r18.a04ef1d
pkgrel=1
pkgdesc="PLugin automatically switches vim background to match system light/dark mode"
arch=('any')
url="https://github.com/vimpostor/vim-lumen"
license=('GPL3')
groups=('vim-plugins')
depends=('vim-runtime' 'glib2')
makedepends=('git')
optdepends=(
    "plasma-desktop: supported color switcher"
    "gnome-desktop: supported color switcher"
    "darkman: supported color switcher"
    "color-scheme-simulator: supported color switcher"
)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}")
md5sums=('SKIP')
install=${_pkgname}.install

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

package() {
    local __installpath="${pkgdir}/usr/share/vim/vimfiles"
    local __docpath="${pkgdir}/usr/share/doc/${_pkgname}"
    local __dirs=(autoload/ doc/ lua/ plugin/)
    cd "$srcdir/${_pkgname}"

    install -d ${__installpath} ${__docpath}
    cp -r -t ${__installpath} ${__dirs[@]}
    install -Dm644 README.md -t "$__docpath"
}