Commit ac532cec authored by Luca Weiss's avatar Luca Weiss Committed by Natanael Copa

community/neovim: enable aarch64

See https://github.com/NixOS/nixpkgs/pull/61588
parent 8bddcb6c
......@@ -18,11 +18,16 @@ pkgrel=0
pkgdesc="Vim-fork focused on extensibility and agility"
url="https://neovim.io"
# s390x: needs luajit
# aarch64: fails to build
arch="all !s390x !aarch64"
arch="all !s390x"
license="Apache-2.0 custom"
makedepends="cmake gettext-dev gperf libtermkey-dev libuv-dev libvterm-dev
lua5.1-lpeg lua5.1-mpack luajit-dev msgpack-c-dev unibilium-dev"
lua5.1-lpeg lua5.1-mpack msgpack-c-dev unibilium-dev"
# Build neovim with lua instead of luajit on aarch64
# See https://github.com/neovim/neovim/issues/7879
case "$CARCH" in
aarch64) makedepends="$makedepends lua5.1-dev lua5.1-bitop" ;;
*) makedepends="$makedepends luajit-dev" ;;
esac
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/neovim/$pkgname/archive/v$pkgver.tar.gz
nodoc.txt
......@@ -32,12 +37,18 @@ build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
local cmakeoptions=
case "$CARCH" in
aarch64) cmakeoptions="-DPREFER_LUA=ON" ;;
esac
cmake .. \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_JEMALLOC=FALSE \
-DCMAKE_VERBOSE_MAKEFILE=TRUE
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
$cmakeoptions
make
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment