2022-02-27 09:03:22 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/o2sh/onefetch
|
|
|
|
TERMUX_PKG_DESCRIPTION="A command-line Git information tool written in Rust"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="@ELWAER-M"
|
2022-04-18 12:47:57 +02:00
|
|
|
TERMUX_PKG_VERSION=2.12.0
|
2022-02-27 09:03:22 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/o2sh/onefetch/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-18 12:47:57 +02:00
|
|
|
TERMUX_PKG_SHA256=f57b16dfa2bb95dd1fb805257a1761baa20d69eb9ce7c311d369609894c53897
|
2022-02-27 09:03:22 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libgit2"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_rust
|
|
|
|
cargo build \
|
|
|
|
--jobs $TERMUX_MAKE_PROCESSES \
|
|
|
|
--target $CARGO_TARGET_NAME \
|
|
|
|
--release
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 target/"${CARGO_TARGET_NAME}"/release/onefetch "$TERMUX_PREFIX"/bin
|
|
|
|
}
|
2022-04-18 12:47:57 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|