contrib/gitui/Pkgfile

21 lines
664 B
Plaintext
Raw Normal View History

2020-11-19 09:46:08 +01:00
# Description: blazing fast terminal-ui for git written in rust
# URL: https://github.com/extrawurst/gitui
# Maintainer: Tim Biermann, tbier at posteo dot de
2023-02-25 19:49:07 +01:00
# Depends on: libgit2 rust xorg-libxcb
2020-11-19 09:46:08 +01:00
name=gitui
2024-04-22 23:43:30 +02:00
version=0.26.1
2023-06-25 21:57:28 +02:00
release=1
2024-04-22 23:43:30 +02:00
source=(https://github.com/extrawurst/gitui/archive/v$version/$name-$version.tar.gz
no-git.patch)
2020-11-19 09:46:08 +01:00
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
2023-02-25 19:49:07 +01:00
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2024-04-22 23:43:30 +02:00
patch -Np1 -d $name-$version -i $SRC/no-git.patch
2023-02-25 19:49:07 +01:00
cargo build --release --manifest-path $name-$version/Cargo.toml
2021-10-11 22:28:49 +02:00
2021-07-11 23:45:13 +02:00
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2020-11-19 09:46:08 +01:00
}