Files
termux-packages/packages/railway-cli/build.sh
termux-pacman-bot 1c0f0c4c2e bump(main/railway-cli): 4.27.0
This commit has been automatically submitted by Github Actions.
2026-01-24 02:39:16 +00:00

31 lines
1.0 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://railway.app
TERMUX_PKG_DESCRIPTION="This is the command line interface for Railway"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="4.27.0"
TERMUX_PKG_SRCURL="https://github.com/railwayapp/cli/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=2be89640903ade1dfda79a3150da67a13153c7d043bf7385563967f8611fc424
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() {
termux_setup_rust
cargo vendor
find ./vendor \
-mindepth 1 -maxdepth 1 -type d \
! -wholename ./vendor/arboard \
! -wholename ./vendor/x11rb-protocol \
-exec rm -rf '{}' \;
find vendor/{arboard,x11rb-protocol} -type f -print0 | \
xargs -0 sed -i \
-e 's|android|disabling_this_because_it_is_for_building_an_apk|g' \
-e "s|/tmp|$TERMUX_PREFIX/tmp|g"
echo "" >> Cargo.toml
echo '[patch.crates-io]' >> Cargo.toml
echo "arboard = { path = \"./vendor/arboard\" }" >> Cargo.toml
echo "x11rb-protocol = { path = \"./vendor/x11rb-protocol\" }" >> Cargo.toml
}