mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-23 14:46:18 +00:00
358d8a6c49
gpkg/libclc gpkg/mesa gpkg/vulkan-icd-loader gpkg/vulkan-tools
29 lines
1.0 KiB
Bash
29 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/ptitSeb/box64
|
|
TERMUX_PKG_DESCRIPTION="Linux Userspace x86_64 Emulator with a twist"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux-pacman"
|
|
TERMUX_PKG_VERSION=0.3.0
|
|
TERMUX_PKG_SRCURL=https://github.com/ptitSeb/box64/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=e334e793638f375a28829c01b089c6ba27d8c3f6094fcbc9360b56ad9c09d0b5
|
|
TERMUX_PKG_DEPENDS="gcc-libs-glibc"
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
|
|
TERMUX_CMAKE_BUILD="Unix Makefiles"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="glibc/etc/binfmt.d"
|
|
|
|
termux_step_pre_configure() {
|
|
if [ "${TERMUX_ARCH}" = "aarch64" ]; then
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DARM_DYNAREC=ON"
|
|
elif [ "${TERMUX_ARCH}" = "x86_64" ]; then
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLD80BITS=1 -DNOALIGN=1"
|
|
fi
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
if [ "${TERMUX_ARCH}" = "aarch64" ]; then
|
|
make install
|
|
elif [ "${TERMUX_ARCH}" = "x86_64" ]; then
|
|
install -Dm755 box64 -t ${TERMUX_PREFIX}/bin/
|
|
fi
|
|
}
|