# $Id: PKGBUILD 73557 2012-07-09 19:15:21Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>

pkgname='vim-jellybeans'
_name=jellybeans.vim
pkgver=1.5
pkgrel=1
pkgdesc='Colorful, dark color scheme, inspired by ir_black and twilight'
arch=('any')
url="https://github.com/nanotech/$_name"
license=('MIT')
groups=('vim-plugins')
depends=('vim')
source=("https://github.com/nanotech/$_name/archive/v$pkgver.zip")
sha256sums=('5a6ec1d4d722b3db7b7f0a3cddc4f752f5eb915e76fe34471444d4c554883d52')

prepare() {
  head -41 "$_name-$pkgver/colors/$_name" | tail -21 | cut -b2- > LICENSE
}

package() {
  install -Dm644 "$_name-$pkgver/colors/$_name" \
    "$pkgdir/usr/share/vim/vimfiles/colors/$_name"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
