add php-zephir-parser
This commit is contained in:
parent
704a65766d
commit
4228cd53cf
26
packages/php-zephir-parser/build.sh
Executable file
26
packages/php-zephir-parser/build.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
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.3.6
|
||||||
|
TERMUX_PKG_SRCURL=https://github.com/zephir-lang/php-zephir-parser/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||||
|
TERMUX_PKG_SHA256=b4a85ad4fb08a9832f7f978db4de1caa66dff233b9c5a8e48f731117c91b6f08
|
||||||
|
TERMUX_PKG_DEPENDS=php
|
||||||
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
TERMUX_PKG_HOSTBUILD=true
|
||||||
|
#TERMUX_MAKE_PROCESSES=1
|
||||||
|
TERMUX_PKG_BUILD_DEPENDS=php
|
||||||
|
# php is (currently) blacklisted for x86_64. Need to blacklist
|
||||||
|
# php-zephir-parser well for the same arch for
|
||||||
|
# ./build-package.sh -a all -i php-zephir-parser
|
||||||
|
# to succeed
|
||||||
|
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
||||||
|
|
||||||
|
termux_step_pre_configure() {
|
||||||
|
$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_SRCDIR/parser/lemon" $TERMUX_PKG_SRCDIR/parser/lemon.c
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user