# $Id: PKGBUILD 95529 2013-08-13 11:23:49Z svenstaro $
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=vim-colorsamplerpack
pkgver=2012.10.28
pkgrel=3
_scriptid=18915
pkgdesc="Different colorschemes for vim"
arch=('any')
url="http://www.vim.org/scripts/script.php?script_id=625"
license=('GPL2' 'GPL3' 'custom')
depends=('vim')
makedepends=('unzip')
groups=('vim-plugins')
source=(ColorSamplerPack.zip::"http://www.vim.org/scripts/download_script.php?src_id=$_scriptid"
        'LICENSE')
md5sums=('b0f1bd54b396e3d6032c01ef1fb421b6'
         'f4639ddafc68f49395c25fb4caf0d6f7')

build() {
    cd ${srcdir}/colors
    # This already exist... we can't update it 8(
    rm torte.vim
    rm desert.vim
}

package() {
    cd ${srcdir}
    installpath="${pkgdir}/usr/share/vim/vim74"
    install -d $installpath/colors/
    install -m644 colors/* $installpath/colors
    install -D -m644 plugin/color_sample_pack.vim $installpath/plugin/themes.vim
    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
