# Contributor: Daniel Sabogal # Maintainer: Jakub Jirutka # # secfixes: # 0.1.6-r1: # - CVE-2016-1248 # 0.2.0-r0: # - CVE-2017-5953 # - CVE-2017-6349 # - CVE-2017-6350 # 0.3.6-r0: # - CVE-2019-12735 # TODO: Try to trim the base package to include only common syntax files etc. pkgname=neovim pkgver=0.4.2 pkgrel=0 pkgdesc="Vim-fork focused on extensibility and agility" url="https://neovim.io" arch="all !aarch64 !s390x" # s390x|aarch64: needs luajit license="Apache-2.0 custom" makedepends="cmake gettext-dev gperf libtermkey-dev libuv-dev libvterm-dev lua5.1-lpeg lua5.1-mpack msgpack-c-dev unibilium-dev luajit-dev libluv-dev" subpackages="$pkgname-lang $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/neovim/neovim/archive/v$pkgver.tar.gz nodoc.txt " build() { mkdir -p "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DENABLE_JEMALLOC=FALSE \ -DCMAKE_VERBOSE_MAKEFILE=TRUE make } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } doc() { default_doc pkgdesc="$pkgdesc (documentation and help pages)" replaces="$pkgname" local docdir="usr/share/nvim/runtime/doc" mkdir -p "$subpkgdir"/$docdir mv "$pkgdir"/$docdir/*.txt "$subpkgdir"/$docdir/ # When user execute ":help ", neovim will open nodoc.txt # with information why docs are not available and how to install them. install -D "$srcdir"/nodoc.txt \ "$pkgdir"/$docdir/nodoc.txt local f; for f in "$subpkgdir"/$docdir/*.txt; do ln -s nodoc.txt "$pkgdir"/$docdir/$(basename $f) done } sha512sums="cc0de18ee7ca5105a0dd9f5f06b4d58335618b22c4dc3d584a024683785ff9d541c7f5131742b8a818ac9acb2218da92f9b8a881d56c4b963237918e589fac22 neovim-0.4.2.tar.gz 72ab288f53acddc088c567aafe8c5afa6835325fab7879e782d1d62f87a662f3a6bac123c450debbae1b32336cc60b2830b429838ee3dfcc7524773b5069f4f0 nodoc.txt"