# Maintainer (aur): Mario Finelli <mario dot finelli at yahoo dot com>
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>

pkgname=vim-colors-solarized-git
pkgver=20110509
pkgrel=3
pkgdesc="Precision colors for machines and people."
arch=('any')
url="http://ethanschoonover.com/solarized"
license=('MIT')
makedepends=('git')
depends=('vim')
conflicts=('vim-solarized')
provides=('vim-solarized')
source=("$pkgname::git://github.com/altercation/vim-colors-solarized.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    local _tmpver="$(git log -n 1 --format="%cd" --date=short)"
    echo "${_tmpver//-/}"
}

package() {
    cd "$srcdir/$pkgname"

    install -dm755 $pkgdir/usr/share/vim/vimfiles/{plugin,bitmaps,colors,doc}

    install -Dm644 autoload/*           $pkgdir/usr/share/vim/vimfiles/plugin/
    install -Dm644 bitmaps/*            $pkgdir/usr/share/vim/vimfiles/bitmaps/
    install -Dm644 colors/*             $pkgdir/usr/share/vim/vimfiles/colors/
    install -Dm644 doc/solarized.txt    $pkgdir/usr/share/vim/vimfiles/doc/
}
