aboutsummaryrefslogtreecommitdiffstats
path: root/community/neovim
diff options
context:
space:
mode:
Diffstat (limited to 'community/neovim')
-rw-r--r--community/neovim/APKBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/community/neovim/APKBUILD b/community/neovim/APKBUILD
index b2251a9a3b..54f7541e7d 100644
--- a/community/neovim/APKBUILD
+++ b/community/neovim/APKBUILD
@@ -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
}