summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-08-24 08:09:56 +0800
committerSainnhepark2020-08-24 08:09:56 +0800
commita98057af0f1b02d0525ee89c46e3c2a738693524 (patch)
tree924224ad737f44a00c5594e629bf247382785fe1
downloadaur-a98057af0f1b02d0525ee89c46e3c2a738693524.tar.gz
init
-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..0bcad292fd0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = vim-edge-git
+ pkgver = v0.1.3.r4.g3231c16
+ pkgrel = 1
+ url = https://github.com/sainnhe/edge
+ arch = any
+ license = MIT
+ source = edge::git+https://github.com/sainnhe/edge.git
+ sha256sums = SKIP
+
+pkgname = vim-edge-git
+ pkgdesc = Clean & Elegant Color Scheme inspired by Atom One and Material
+ depends = vim
+ provides = vim-edge
+ conflicts = vim-edge
+
+pkgname = vim-airline-edge-git
+ pkgdesc = edge color scheme for airline
+ depends = vim-edge
+ depends = vim-airline
+ provides = vim-airline-edge
+ conflicts = vim-airline-edge
+
+pkgname = vim-lightline-edge-git
+ pkgdesc = edge color scheme for lightline
+ depends = vim-edge
+ depends = vim-lightline-git
+ provides = vim-lightline-edge
+ conflicts = vim-lightline-edge
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..673d41d0cb8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+_variant='vim'
+_colorscheme='edge'
+
+pkgbase="${_variant}-${_colorscheme}-git"
+pkgname=("${_variant}-${_colorscheme}-git"
+ "${_variant}-airline-${_colorscheme}-git"
+ "${_variant}-lightline-${_colorscheme}-git")
+pkgver=v0.1.3.r4.g3231c16
+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-edge-git() {
+ pkgdesc='Clean & Elegant Color Scheme inspired by Atom One and Material'
+ depends=("${_variant}")
+ provides=("${_variant}-${_colorscheme}")
+ conflicts=("${_variant}-${_colorscheme}")
+ cd "${srcdir}/${_colorscheme}"
+ find "autoload/${_colorscheme}.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-edge-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-edge-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/{}" \;
+}