Files
termux-packages/packages/php-zephir-parser/build.sh
termux-pacman-bot c9ba9ecb64 some packages: Re-enable clang16-porting
%ci:no-build
2023-04-07 01:27:08 +00:00

24 lines
931 B
Bash

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>"
TERMUX_PKG_VERSION="1.5.3"
TERMUX_PKG_SRCURL=https://github.com/zephir-lang/php-zephir-parser/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=aea5e29c6b11d559cce08b5506697b4e973c5b274651b18d67f5845a0d8eb77b
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS=php
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_HOSTBUILD=true
termux_step_pre_configure() {
# copy host build `lemon`
cp "$TERMUX_PKG_HOSTBUILD_DIR/lemon" $TERMUX_PKG_SRCDIR/parser/
$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
gcc -o "$TERMUX_PKG_HOSTBUILD_DIR/lemon" $TERMUX_PKG_SRCDIR/parser/lemon.c
}