summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-27 16:40:02 +0800
committerSainnhepark2020-07-27 16:40:02 +0800
commitfc236349a008be9d3234ce6c3383f46bae75394a (patch)
treea05345b3e3b8b557e77bc151478d517c1ec2837c
downloadaur-fc236349a008be9d3234ce6c3383f46bae75394a.tar.gz
init
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD55
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5de1c9923b8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = vim-onedark-git
+ pkgver = r196.c0f2207
+ pkgrel = 1
+ url = https://github.com/joshdick/onedark.vim
+ arch = any
+ license = MIT
+ makedepends = git
+ source = vim-onedark::git+https://github.com/joshdick/onedark.vim.git
+ sha256sums = SKIP
+
+pkgname = vim-onedark-git
+ pkgdesc = A dark Vim/Neovim color scheme inspired by Atom's One Dark syntax theme.
+ depends = vim
+ optdepends = vim-airline-onedark-git: onedark color scheme for airline
+ optdepends = vim-lightline-onedark-git: onedark color scheme for lightline
+ provides = vim-onedark
+ conflicts = vim-onedark
+
+pkgname = vim-airline-onedark-git
+ pkgdesc = OneDark color scheme for airline.
+ depends = vim
+ depends = vim-airline
+ depends = vim-onedark
+ provides = vim-airline-onedark
+ conflicts = vim-airline-onedark
+
+pkgname = vim-lightline-onedark-git
+ pkgdesc = OneDark color scheme for lightline.
+ depends = vim
+ depends = vim-lightline-git
+ depends = vim-onedark
+ provides = vim-lightline-onedark
+ conflicts = vim-lightline-onedark
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a7865861e0a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+pkgbase=vim-onedark-git
+_pkgbase=vim-onedark
+pkgname=('vim-onedark-git'
+ 'vim-airline-onedark-git'
+ 'vim-lightline-onedark-git')
+pkgver=r196.c0f2207
+pkgrel=1
+arch=('any')
+url='https://github.com/joshdick/onedark.vim'
+license=('MIT')
+makedepends=('git')
+source=("${_pkgbase}::git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgbase}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package_vim-onedark-git() {
+ pkgdesc="A dark Vim/Neovim color scheme inspired by Atom's One Dark syntax theme."
+ depends=('vim')
+ optdepends=('vim-airline-onedark-git: onedark color scheme for airline'
+ 'vim-lightline-onedark-git: onedark color scheme for lightline')
+ _pkgname=vim-onedark
+
+ provides=("${_pkgbase}")
+ conflicts=("${_pkgbase}")
+ cd "${srcdir}/${_pkgbase}"
+ find autoload/onedark.vim colors -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/pack/${_pkgbase}/start/${_pkgbase}/{}" \;
+ install -Dm 644 "${srcdir}/${_pkgbase}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE.md"
+}
+
+package_vim-airline-onedark-git() {
+ pkgdesc='OneDark color scheme for airline.'
+ depends=('vim' 'vim-airline' 'vim-onedark')
+ _pkgname=vim-airline-onedark
+ provides=('vim-airline-onedark')
+ conflicts=('vim-airline-onedark')
+ cd "${srcdir}/${_pkgbase}"
+ install -Dm 644 "${srcdir}/${_pkgbase}/autoload/airline/themes/onedark.vim" "${pkgdir}/usr/share/vim/vimfiles/pack/${_pkgbase}/start/${_pkgbase}/autoload/airline/themes/onedark.vim"
+}
+
+package_vim-lightline-onedark-git() {
+ pkgdesc='OneDark color scheme for lightline.'
+ depends=('vim' 'vim-lightline-git' 'vim-onedark')
+ _pkgname=vim-lightline-onedark
+ provides=('vim-lightline-onedark')
+ conflicts=('vim-lightline-onedark')
+ cd "${srcdir}/${_pkgbase}"
+ install -Dm 644 "${srcdir}/${_pkgbase}/autoload/lightline/colorscheme/onedark.vim" "${pkgdir}/usr/share/vim/vimfiles/pack/${_pkgbase}/start/${_pkgbase}/autoload/lightline/colorscheme/onedark.vim"
+}