mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 02:26:34 +00:00
8535a4a455
Fixes #21679
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://bladelang.com/
|
|
TERMUX_PKG_DESCRIPTION="A simple, fast, clean and dynamic language"
|
|
TERMUX_PKG_LICENSE="custom"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.0.86"
|
|
TERMUX_PKG_SRCURL=https://github.com/blade-lang/blade/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=abbf411abd64e5fc66411f37bcd4efec1ec71ba8b000d7f9d3249c1c726f468e
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_DEPENDS="libgd, libcurl, openssl"
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
|
|
termux_step_host_build() {
|
|
sed -i '/add_subdirectory(imagine)/d' $TERMUX_PKG_SRCDIR/packages/CMakeLists.txt
|
|
termux_setup_cmake
|
|
cmake $TERMUX_PKG_SRCDIR
|
|
make -j $TERMUX_PKG_MAKE_PROCESSES
|
|
echo "add_subdirectory(imagine)" >> $TERMUX_PKG_SRCDIR/packages/CMakeLists.txt
|
|
}
|
|
|
|
termux_step_pre_configure() {
|
|
PATH=$TERMUX_PKG_HOSTBUILD_DIR/blade:$PATH
|
|
export LD_LIBRARY_PATH=$TERMUX_PKG_HOSTBUILD_DIR/blade
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
pushd blade
|
|
install -Dm700 -t $TERMUX_PREFIX/bin blade
|
|
install -Dm600 -t $TERMUX_PREFIX/lib libblade.so
|
|
local sharedir=$TERMUX_PREFIX/share/blade
|
|
mkdir -p $sharedir
|
|
cp -r benchmarks includes libs tests $sharedir/
|
|
popd
|
|
}
|