summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b087d50b6250e71e9d9425d152902aca5710e861 (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
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>

pkgname=vim-rigel-git
pkgver=1.0.0.r39.gce441c5
pkgrel=1
pkgdesc="A 24bit colorscheme based on the star Rigel, the bright blue star of Orion"
arch=('any')
url="https://github.com/rigellute/rigel"
license=('MIT')
groups=('vim-plugins')
depends=('vim-plugin-runtime')
makedepends=('git')
provides=("${pkgname%-git}" 'vim-airline-rigel' 'vim-lightline-rigel')
conflicts=("${pkgname%-git}" 'vim-airline-rigel' 'vim-lightline-rigel')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

package() {
  cd "$pkgname"
  find autoload colors \
    -type f -exec install -Dvm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;
  install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}