2021-08-03 04:50:29 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/phalcon/php-zephir-parser
|
|
|
|
TERMUX_PKG_DESCRIPTION="The Zephir Parser delivered as a C extension for the PHP language."
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="ian4hu <hu2008yinxiang@163.com>"
|
2021-12-12 01:29:00 +01:00
|
|
|
TERMUX_PKG_VERSION=1.4.2
|
2021-08-03 04:50:29 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/zephir-lang/php-zephir-parser/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-12-12 01:29:00 +01:00
|
|
|
TERMUX_PKG_SHA256=12931f2b31e78e3afb848883a92297d80183e6e8cfa2d2a15e28a3decbe84b60
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2021-08-03 04:50:29 +02:00
|
|
|
TERMUX_PKG_DEPENDS=php
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2021-08-03 13:20:38 +02:00
|
|
|
# copy host build `lemon`
|
|
|
|
cp "$TERMUX_PKG_HOSTBUILD_DIR/lemon" $TERMUX_PKG_SRCDIR/parser/
|
2021-08-03 04:50:29 +02:00
|
|
|
$TERMUX_PREFIX/bin/phpize
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_host_build() {
|
|
|
|
# lemon excuted by build host, so we need build it by hostbuild, then it will be reused by later build
|
2021-08-03 13:20:38 +02:00
|
|
|
gcc -o "$TERMUX_PKG_HOSTBUILD_DIR/lemon" $TERMUX_PKG_SRCDIR/parser/lemon.c
|
2021-08-03 08:10:39 +02:00
|
|
|
|
2021-08-03 13:20:38 +02:00
|
|
|
}
|