summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Walch2015-06-23 18:00:23 +0300
committerFlorian Walch2015-06-23 18:00:23 +0300
commitbae65b07ee532ebbc10bf6045739e6334a3f735e (patch)
treea1bc170fe82583ab43a5e7be2147943994859ea0
downloadaur-bae65b07ee532ebbc10bf6045739e6334a3f735e.tar.gz
Initial commit: neovim-git 0.r3607.20a57c4-1.
-rw-r--r--.SRCINFO31
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD48
-rw-r--r--neovim-git.install16
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8621f5e78a1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = neovim-git
+ pkgdesc = Fork of Vim aiming to improve user experience, plugins, and GUIs.
+ pkgver = 0.r3607.20a57c4
+ pkgrel = 1
+ url = http://neovim.io
+ install = neovim-git.install
+ arch = i686
+ arch = x86_64
+ license = custom:neovim
+ makedepends = cmake
+ makedepends = git
+ makedepends = luajit
+ makedepends = lua51-messagepack
+ makedepends = lua51-lpeg
+ depends = jemalloc
+ depends = libtermkey-bzr
+ depends = libuv
+ depends = libvterm-bzr
+ depends = msgpack-c
+ depends = unibilium
+ optdepends = python2-neovim: for Python 2 plugin support (see :help nvim-python)
+ optdepends = python-neovim: for Python 3 plugin support (see :help nvim-python)
+ optdepends = xclip: for clipboard support (or xsel) (see :help nvim-clipboard)
+ optdepends = xsel: for clipboard support (or xclip) (see :help nvim-clipboard)
+ provides = neovim=0.r3607.20a57c4
+ conflicts = neovim
+ source = neovim-git::git+https://github.com/neovim/neovim.git
+ sha256sums = SKIP
+
+pkgname = neovim-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..44d319eb49a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!PKGBUILD
+!*.install
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..65320c1a8dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Florian Walch <florian+aur@fwalch.com>
+# Contributor: Florian Hahn <flo@fhahn.com>
+
+pkgname=neovim-git
+pkgver=0.r3607.20a57c4
+pkgrel=1
+pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs.'
+arch=('i686' 'x86_64')
+url='http://neovim.io'
+license=('custom:neovim')
+depends=('jemalloc' 'libtermkey-bzr' 'libuv' 'libvterm-bzr' 'msgpack-c' 'unibilium')
+makedepends=('cmake' 'git' 'luajit' 'lua51-messagepack' 'lua51-lpeg')
+optdepends=('python2-neovim: for Python 2 plugin support (see :help nvim-python)'
+ 'python-neovim: for Python 3 plugin support (see :help nvim-python)'
+ 'xclip: for clipboard support (or xsel) (see :help nvim-clipboard)'
+ 'xsel: for clipboard support (or xclip) (see :help nvim-clipboard)')
+source=("${pkgname}::git+https://github.com/neovim/neovim.git")
+sha256sums=('SKIP')
+provides=("neovim=${pkgver}")
+conflicts=('neovim')
+install=neovim-git.install
+
+pkgver() {
+ cd "${pkgname}"
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ mkdir -p "${pkgname}/build"
+ cd "${pkgname}/build"
+ cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+check() {
+ cd "${pkgname}/build"
+ ./bin/nvim --version
+ ./bin/nvim -u NONE -c ':quit'
+}
+
+package() {
+ cd "${pkgname}/build"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set sw=2 sts=2 et:
diff --git a/neovim-git.install b/neovim-git.install
new file mode 100644
index 00000000000..26b704b27fc
--- /dev/null
+++ b/neovim-git.install
@@ -0,0 +1,16 @@
+# $1: new package version
+post_install() {
+ echo ":: The Neovim executable is called 'nvim'."
+ echo ":: To use your existing Vim configuration:"
+ echo " ln -s ~/.vimrc ~/.nvimrc"
+ echo " ln -s ~/.vim ~/.nvim"
+ echo ":: See ':help nvim' for more information on Neovim."
+}
+
+# $1: new package version
+# $2: old package version
+post_upgrade() {
+ if [[ "$(vercmp ${2} 0.r2965.51c6f38)" -le 0 ]]; then
+ post_install "${1}"
+ fi
+}