summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD54
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ca6cef643ab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = vim-gruvbox-material-git
+ pkgver = v1.2.0.r12.g8c5607c
+ pkgrel = 1
+ url = https://github.com/sainnhe/gruvbox-material
+ arch = any
+ license = MIT
+ source = gruvbox-material::git+https://github.com/sainnhe/gruvbox-material.git
+ sha256sums = SKIP
+
+pkgname = vim-gruvbox-material-git
+ pkgdesc = Gruvbox with Material Palette
+ depends = vim
+ provides = vim-gruvbox-material
+ conflicts = vim-gruvbox-material
+
+pkgname = vim-airline-gruvbox-material-git
+ pkgdesc = gruvbox-material color scheme for airline
+ depends = vim-gruvbox-material
+ depends = vim-airline
+ provides = vim-airline-gruvbox-material
+ conflicts = vim-airline-gruvbox-material
+
+pkgname = vim-lightline-gruvbox-material-git
+ pkgdesc = gruvbox-material color scheme for lightline
+ depends = vim-gruvbox-material
+ depends = vim-lightline-git
+ provides = vim-lightline-gruvbox-material
+ conflicts = vim-lightline-gruvbox-material
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..550155de848
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+_variant='vim'
+_colorscheme='gruvbox-material'
+
+pkgbase="${_variant}-${_colorscheme}-git"
+pkgname=("${_variant}-${_colorscheme}-git"
+ "${_variant}-airline-${_colorscheme}-git"
+ "${_variant}-lightline-${_colorscheme}-git")
+pkgver=v1.2.0.r12.g8c5607c
+pkgrel=1
+arch=('any')
+url="https://github.com/sainnhe/${_colorscheme}"
+license=('MIT')
+source=("${_colorscheme}::git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_colorscheme}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package_vim-gruvbox-material-git() {
+ pkgdesc='Gruvbox with Material Palette'
+ depends=("${_variant}")
+ provides=("${_variant}-${_colorscheme}")
+ conflicts=("${_variant}-${_colorscheme}")
+ cd "${srcdir}/${_colorscheme}"
+ find autoload/*.vim doc colors -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/{}" \;
+ install -Dm 644 "${srcdir}/${_colorscheme}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_vim-airline-gruvbox-material-git() {
+ pkgdesc="${_colorscheme} color scheme for airline"
+ depends=("${_variant}-${_colorscheme}"
+ 'vim-airline')
+ provides=("${_variant}-airline-${_colorscheme}")
+ conflicts=("${_variant}-airline-${_colorscheme}")
+ cd "${srcdir}/${_colorscheme}"
+ find autoload/airline -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/{}" \;
+}
+
+package_vim-lightline-gruvbox-material-git() {
+ pkgdesc="${_colorscheme} color scheme for lightline"
+ depends=("${_variant}-${_colorscheme}"
+ 'vim-lightline-git')
+ provides=("${_variant}-lightline-${_colorscheme}")
+ conflicts=("${_variant}-lightline-${_colorscheme}")
+ cd "${srcdir}/${_colorscheme}"
+ find autoload/lightline -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/{}" \;
+}