mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-06 10:53:21 +00:00
22 lines
712 B
Bash
22 lines
712 B
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="2.0.11"
|
|
TERMUX_PKG_SRCURL=https://github.com/railwayapp/cli/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f7a1ebc94c4f780e90a7fd5d7078e9935cc5b00cec3ba07d4df379dd7d30d35b
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
}
|
|
|
|
termux_step_make() {
|
|
go build -ldflags="-s -w -X github.com/railwayapp/cli/constants.Version=${TERMUX_PKG_VERSION}" -o bin/railway
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/railway
|
|
}
|