termux-packages/packages/uwsgi/build.sh

36 lines
1.2 KiB
Bash
Raw Normal View History

2021-12-10 21:37:54 +01:00
TERMUX_PKG_HOMEPAGE=https://projects.unbit.it/uwsgi
TERMUX_PKG_DESCRIPTION="uWSGI application server container"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.0.20
2021-12-10 21:37:54 +01:00
TERMUX_PKG_SRCURL=https://github.com/unbit/uwsgi/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=88ab9867d8973d8ae84719cf233b7dafc54326fcaec89683c3f9f77c002cdff9
2022-03-28 01:00:01 +02:00
TERMUX_PKG_DEPENDS="libandroid-glob, libandroid-sysv-semaphore, libcap, libcrypt, libjansson, libuuid, libxml2, openssl, pcre, python"
2021-12-10 21:37:54 +01:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
2021-12-10 21:37:54 +01:00
2022-03-28 01:00:01 +02:00
termux_step_post_get_source() {
cp $TERMUX_PKG_BUILDER_DIR/sys_time.c ./core/
}
termux_step_pre_configure() {
_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
2021-12-10 21:37:54 +01:00
export UWSGI_PYTHON_NOLIB=true
export UWSGI_INCLUDES="$TERMUX_PREFIX/include"
2022-03-28 01:00:01 +02:00
export APPEND_CFLAGS="$CPPFLAGS
-I$TERMUX_PREFIX/include/python${_PYTHON_VERSION}
-DOBSOLETE_LINUX_KERNEL
"
LDFLAGS+="
-lpython${_PYTHON_VERSION}
-landroid-glob
-landroid-sysv-semaphore
"
2021-12-10 21:37:54 +01:00
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin "$TERMUX_PKG_BUILDDIR/uwsgi"
}