summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 961f564c344ef28e851707f63b254951ff7be6b1 (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
# Maintainer: Jeremy Audet <jerebear@protonmail.com>

pkgname='vim-jellybeans-git'
_repository='jellybeans.vim'
pkgver=1.6.18.gddf78cf # see pkgver()
pkgrel=1
pkgdesc='A colorful, dark color scheme, inspired by ir_black and twilight.'
arch=('any')
url="https://github.com/nanotech/${_repository}"
license=('MIT')
groups=('vim-plugins')
depends=('vim')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/nanotech/${_repository}.git" 'LICENSE.txt')

sha256sums=('SKIP'
            '914e3a036fe21cf2741e5334263ea10ec145ae894248bb95c8cb9e38f20baabf')

pkgver() {
  cd "${_repository}"
  git describe --always | sed 's/^v//' | sed 's/-/./g'
}

package() {
  cd "${srcdir}"
  install -Dm 644 \
    "${_repository}/colors/jellybeans.vim" \
    "${pkgdir}/usr/share/vim/vimfiles/colors/jellybeans.vim"
  install -Dm 644 \
    "LICENSE.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}

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