0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
Jia Yuan Lo a3fa8dd5d7
chore(main/mono): disable auto update (#21567)
Upstream will be changing soon

%ci:no-build
2024-09-29 23:52:48 +08:00

50 lines
1.4 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.mono-project.com/
TERMUX_PKG_DESCRIPTION="Cross platform, open source .NET framework"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.12.0.199"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://download.mono-project.com/sources/mono/mono-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=c0850d545353a6ba2238d45f0914490c6a14a0017f151d3905b558f033478ef5
TERMUX_PKG_DEPENDS="krb5, mono-libs, zlib"
TERMUX_PKG_HOSTBUILD=true
# https://github.com/mono/mono/issues/21796
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-btls
--without-ikvm-native
"
termux_step_post_get_source() {
rm -f external/bdwgc/config.status
}
termux_step_host_build() {
local _PREFIX_FOR_BUILD=$TERMUX_PKG_HOSTBUILD_DIR/prefix
mkdir -p $_PREFIX_FOR_BUILD
$TERMUX_PKG_SRCDIR/configure --prefix=$_PREFIX_FOR_BUILD \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
make -j $TERMUX_PKG_MAKE_PROCESSES
make install
}
termux_step_pre_configure() {
if [ "$TERMUX_ARCH" == "arm" ]; then
CFLAGS="${CFLAGS//-mthumb/}"
fi
LDFLAGS+=" -lgssapi_krb5"
}
termux_step_post_make_install() {
pushd $TERMUX_PKG_HOSTBUILD_DIR/prefix/lib/mono
find . -name '*.so' -exec rm -f \{\} \;
rm -f ./4.5/mono-shlib-cop.exe.config
cp -rT . $TERMUX_PREFIX/lib/mono
popd
# Strip off SOVERSION suffix for shared libraries.
sed -i -E 's/\.so\.[0-9]+/.so/g' $TERMUX_PREFIX/etc/mono/config
}