summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 294671602d54af8d839f5bc705adc741798e119c (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=vim-256noir-git
pkgver=r15.e8668a1
pkgrel=2
pkgdesc="Dark, minimal 256-color colorscheme"
arch=('any')
url="https://github.com/andreasvc/vim-256noir"
license=('custom:unknown')
groups=('vim-plugins')
depends=('vim-plugin-runtime')
makedepends=('git' 'python' 'python-docutils' 'python-pygments')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

build() {
	cd "$pkgname"
	make
	rst2man README.rst vim-256noir.1
}

package() {
	cd "$pkgname"
	install -Dm644 colors/256_noir.vim -t "$pkgdir/usr/share/vim/vimfiles/colors/"
	install -Dm644 vim-256noir.1 -t "$pkgdir/usr/share/man/man1/"
}