mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
3960e1c682
Allows building Astral on non-x86_64 hosts (e.g. aarch64).
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
name=vim
|
|
revision=1
|
|
from_source=vim
|
|
imagedeps="build-essential"
|
|
hostdeps="xgcc xbinutils"
|
|
deps="ncurses base"
|
|
|
|
configure() {
|
|
cp -rp ${source_dir}/* .
|
|
vim_cv_toupper_broken="no" \
|
|
ac_cv_small_wchar_t="no" \
|
|
ac_cv_func_sigsetjmp="no" \
|
|
vim_cv_terminfo="yes" \
|
|
vim_cv_tgetent="zero" \
|
|
vim_cv_tty_group="" \
|
|
vim_cv_tty_mode="0620" \
|
|
vim_cv_getcwd_broken="no" \
|
|
vim_cv_timer_create="no" \
|
|
vim_cv_timer_create_with_lrt="no" \
|
|
vim_cv_stat_ignores_slash="no" \
|
|
vim_cv_memmove_handles_overlap="yes" \
|
|
vim_cv_bcopy_handles_overlap="yes" \
|
|
vim_cv_memcpy_handles_overlap="yes" \
|
|
./configure --host=x86_64-astral --prefix=${prefix} --with-tlib=tinfo --disable-gtktest --disable-cion-cache-update --disable-desktop-database-update --disable-canberra --disable-selinux --disable-xsmp --disable-channel --disable-netbeans --enable-multibyte --disable-acl --disable-gpm --disable-sysmous --disable-nls --enable-gui="no" --without-x
|
|
}
|
|
|
|
build() {
|
|
make -j ${parallelism}
|
|
}
|
|
|
|
package() {
|
|
# vim strips the installed binary with a bare `$(STRIP)`; use the cross strip
|
|
# so it works when building for x86_64 on a non-x86_64 host.
|
|
make install DESTDIR=${dest_dir} STRIP=x86_64-astral-strip
|
|
|
|
mkdir -p ${dest_dir}/bin
|
|
pushd ${dest_dir}/bin
|
|
ln -sv ${prefix}/bin/vim vi
|
|
popd
|
|
}
|