summaryrefslogtreecommitdiff
path: root/system/vim
diff options
context:
space:
mode:
Diffstat (limited to 'system/vim')
-rw-r--r--system/vim/APKBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/system/vim/APKBUILD b/system/vim/APKBUILD
index df46d4b5d..8c233a041 100644
--- a/system/vim/APKBUILD
+++ b/system/vim/APKBUILD
@@ -11,7 +11,8 @@ arch="all"
license="custom"
depends=""
options="!check" # requires controlling TTY, and fails with musl locales
-makedepends="acl-dev ncurses-dev perl-dev python3-dev"
+makedepends_host="acl-dev ncurses-dev"
+[ "$CBUILD" != "$CHOST" ] || makedepends_host="$makedepends_host perl-dev python3-dev"
subpackages="$pkgname-doc ${pkgname}diff::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
vimrc
@@ -31,19 +32,29 @@ prepare() {
}
build() {
+ local _onlynative
cd "$builddir"
+ [ "$CBUILD" != "$CHOST" ] || _onlynative="--enable-perlinterp --enable-python3interp=dynamic"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --enable-perlinterp \
- --enable-python3interp=dynamic \
+ $_onlynative \
--without-x \
--enable-acl \
--enable-nls \
--enable-multibyte \
--enable-gui=no \
- --with-compiledby="Adélie Linux"
+ --with-compiledby="Adélie Linux" \
+ --with-tlib=ncurses \
+ vim_cv_toupper_broken=no \
+ vim_cv_terminfo=yes \
+ vim_cv_tgent=zero \
+ vim_cv_tty_group=world \
+ vim_cv_getcwd_broken=no \
+ vim_cv_stat_ignores_slash=no \
+ vim_cv_memmove_handles_overlap=yes \
+ STRIP=:
make
}