summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 697cd9fafccadc389654e6a82eb5aa65126d669d (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
42
43
44
45
46
# Maintainer: jsteel <mail at jsteel dot org>
# Contributor: nblock <nblock [/at\] archlinux DOT us>
# Contributor: William Díaz <wdiaz [at] archlinux [dot] us>
# Contributor: Wolfgang Frisch <xororand@frexx.de>
# Contributor: Leandro Inacio <carvalho.inacio@gmail.com>

# This package is based on gentoo's app-vim/colorschemes.
#
# The source tarball is generated by upstream using the following script:
#   https://github.com/radhermit/gentoo-vim-scripts/blob/master/get-colorschemes

pkgname=vim-colorschemes
pkgver=r215.fd8f122
pkgrel=1
pkgdesc="A very large collection of color schemes from vim.org"
url="https://github.com/flazz/vim-colorschemes/"
arch=('any')
conflicts=('vim-colorsamplerpack' 'vim-solarized-git' 'tomorrow-theme-vim-git')
depends=('vim')
makedepends=('git')
license=('vim' 'GPL2' 'public-domain' 'as-is')
groups=('vim-plugins')
source=("git+https://github.com/flazz/vim-colorschemes.git#commit=fd8f122cef604330c96a6a6e434682dbdfb878c9")
md5sums=('SKIP')

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

       }

build() {
  cd "$srcdir"/vim-colorschemes
  # fix line endings
  find . -name '*.vim' -exec sed -i -e 's,\r,\n,g' {} \;
}

package() {
  cd "$srcdir"/vim-colorschemes

  install -dm755 "$pkgdir"/usr/share/vim/vimfiles/colors
  install -m644 colors/* "$pkgdir"/usr/share/vim/vimfiles/colors/

  # delete existing colors
  rm -r "$pkgdir"/usr/share/vim/vimfiles/colors/{blue.vim,delek.vim,desert.vim,torte.vim}
}