37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
23 lines
925 B
Bash
23 lines
925 B
Bash
TERMUX_PKG_HOMEPAGE=https://sourceware.org/libffi/
|
|
TERMUX_PKG_DESCRIPTION="Library providing a portable, high level programming interface to various calling conventions"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=3.3
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/libffi/libffi-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
|
|
TERMUX_PKG_BREAKS="libffi-dev"
|
|
TERMUX_PKG_REPLACES="libffi-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-multi-os-directory"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/libffi-${TERMUX_PKG_VERSION}/include"
|
|
|
|
termux_step_pre_configure() {
|
|
if [ $TERMUX_ARCH = arm ]; then
|
|
CFLAGS+=" -fno-integrated-as"
|
|
fi
|
|
}
|
|
termux_step_post_configure() {
|
|
# work around since mmap can't be written and marked executable in android anymore from userspace
|
|
echo "#define FFI_MMAP_EXEC_WRIT 1" >> fficonfig.h
|
|
}
|