termux-packages/packages/macchina/build.sh

17 lines
734 B
Bash
Raw Normal View History

2021-05-05 02:42:19 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/Macchina-CLI/macchina
TERMUX_PKG_DESCRIPTION="A system information fetcher, with an emphasis on performance and minimalism."
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Max Ferrer @PandaFoss"
2021-07-17 20:19:38 +02:00
TERMUX_PKG_VERSION=0.9.2
2021-05-05 02:42:19 +02:00
TERMUX_PKG_SRCURL=https://github.com/Macchina-CLI/macchina/archive/v${TERMUX_PKG_VERSION}.tar.gz
2021-07-17 20:19:38 +02:00
TERMUX_PKG_SHA256=f5ac11a49470639d81424b208fc5d95b111a77b97138af7fce347ad3daae8005
2021-05-05 02:42:19 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
termux_step_make_install() {
termux_setup_rust
cargo build --jobs ${TERMUX_MAKE_PROCESSES} --target ${CARGO_TARGET_NAME} --release
install -Dm755 -t ${TERMUX_PREFIX}/bin target/${CARGO_TARGET_NAME}/release/macchina
}