gitui: 0.26.2 -> 0.26.3
This commit is contained in:
parent
ede2b59114
commit
5d14f0b18f
@ -1,6 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF39AxQcyGVVr9V4BCeama+4rzlbdafZ6j+BjODtJtWNiGhssNg3DVV5zRI+HBLp3p8mvtpy8qvQiGRtc27yjdlQg=
|
RWSagIOpLGJF3+ozjrj/T4IrNzVclNVkcYVkX5jDU5qJckS9WWOwwmaqGZTjpYvyqVRQ2nSh3oyPS6XJd8Vu91Lk1MV7dJQ1WA8=
|
||||||
SHA256 (Pkgfile) = 2f4cfdd8a3dde97d665a3f936873fac6ee69da8b3999e5d884072952fe6a8091
|
SHA256 (Pkgfile) = 21ae6a2c5a7e6aed305528226fd9f575ab5f7f4b97ca0fab352f175f79f44ea4
|
||||||
SHA256 (.footprint) = adfcc47470b14395e43a31d4d47625f61396b4f69abaa4f0f4a0b0aff4337667
|
SHA256 (.footprint) = adfcc47470b14395e43a31d4d47625f61396b4f69abaa4f0f4a0b0aff4337667
|
||||||
SHA256 (gitui-0.26.2.tar.gz) = c69eccba2457c53c18b933794aa4ff3dfecb71af42349282108354d543e4d956
|
SHA256 (gitui-0.26.3.tar.gz) = 8075e180f3b01ff0c290b690488a7628c44b4de12346e04a77d823914a48918b
|
||||||
SHA256 (no-git.patch) = 7e664e9e7c6297142555dddadb84db637770e79c40d9519560fa7bdc6dd16a31
|
|
||||||
|
@ -4,17 +4,15 @@
|
|||||||
# Depends on: libgit2 rust xorg-libxcb
|
# Depends on: libgit2 rust xorg-libxcb
|
||||||
|
|
||||||
name=gitui
|
name=gitui
|
||||||
version=0.26.2
|
version=0.26.3
|
||||||
release=1
|
release=1
|
||||||
source=(https://github.com/extrawurst/gitui/archive/v$version/$name-$version.tar.gz
|
source=(https://github.com/extrawurst/gitui/archive/v$version/$name-$version.tar.gz)
|
||||||
no-git.patch)
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||||||
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
||||||
|
|
||||||
patch -Np1 -d $name-$version -i $SRC/no-git.patch
|
BUILD_GIT_COMMIT_ID=0123456 cargo build --release --manifest-path $name-$version/Cargo.toml
|
||||||
cargo build --release --manifest-path $name-$version/Cargo.toml
|
|
||||||
|
|
||||||
install -Dt $PKG/usr/bin $name-$version/target/release/$name
|
install -Dt $PKG/usr/bin $name-$version/target/release/$name
|
||||||
}
|
}
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
diff -Naur gitui-0.26.2.old/build.rs gitui-0.26.2/build.rs
|
|
||||||
--- gitui-0.26.2.old/build.rs 2024-05-18 11:54:21.421351742 +0200
|
|
||||||
+++ gitui-0.26.2/build.rs 2024-05-18 11:59:51.821050430 +0200
|
|
||||||
@@ -1,24 +1,5 @@
|
|
||||||
use chrono::TimeZone;
|
|
||||||
|
|
||||||
-fn get_git_hash() -> String {
|
|
||||||
- use std::process::Command;
|
|
||||||
-
|
|
||||||
- let commit = Command::new("git")
|
|
||||||
- .arg("rev-parse")
|
|
||||||
- .arg("--short")
|
|
||||||
- .arg("--verify")
|
|
||||||
- .arg("HEAD")
|
|
||||||
- .output();
|
|
||||||
- if let Ok(commit_output) = commit {
|
|
||||||
- let commit_string =
|
|
||||||
- String::from_utf8_lossy(&commit_output.stdout);
|
|
||||||
-
|
|
||||||
- return commit_string.lines().next().unwrap_or("").into();
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- panic!("Can not get git commit: {}", commit.unwrap_err());
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
fn main() {
|
|
||||||
let now = match std::env::var("SOURCE_DATE_EPOCH") {
|
|
||||||
Ok(val) => chrono::Local
|
|
||||||
@@ -29,14 +10,9 @@
|
|
||||||
let build_date = now.date_naive();
|
|
||||||
|
|
||||||
let build_name = if std::env::var("GITUI_RELEASE").is_ok() {
|
|
||||||
- format!(
|
|
||||||
- "{} {} ({})",
|
|
||||||
- env!("CARGO_PKG_VERSION"),
|
|
||||||
- build_date,
|
|
||||||
- get_git_hash()
|
|
||||||
- )
|
|
||||||
+ format!("{} {}", env!("CARGO_PKG_VERSION"), build_date)
|
|
||||||
} else {
|
|
||||||
- format!("nightly {} ({})", build_date, get_git_hash())
|
|
||||||
+ format!("nightly {}", build_date)
|
|
||||||
};
|
|
||||||
|
|
||||||
println!("cargo:warning=buildname '{}'", build_name);
|
|
Loading…
x
Reference in New Issue
Block a user