Compare commits

...

3 commits

Author SHA1 Message Date
icp
4e43e67693 rust-analyzer: update to 2025.04.07. 2025-04-10 20:34:18 +00:00
classabbyamp
6d988c2e17
tangara-companion: fix cross 2025-04-10 16:20:12 -04:00
classabbyamp
56283741b7
New package: tangara-companion-0.4.3 2025-04-10 16:03:22 -04:00
3 changed files with 51 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Template file for 'rust-analyzer'
pkgname=rust-analyzer
version=2025.03.31
version=2025.04.07
revision=1
_ver=${version//./-}
build_style=cargo
@ -10,7 +10,7 @@ maintainer="icp <pangolin@vivaldi.net>"
license="Apache-2.0, MIT"
homepage="https://rust-analyzer.github.io/"
distfiles="https://github.com/rust-lang/rust-analyzer/archive/refs/tags/${_ver}.tar.gz"
checksum=f69ccd2481e26264b2c7c006878a7d35ba719cd9c91f56fdc39fbd6bd808786f
checksum=03f59db9cbb35962e3d850401e23bbe853d73b4d24850e2e0345f31044605fbf
# tests require Rust source code
make_check=no

View file

@ -0,0 +1,24 @@
--- a/script/meson-aux-cargo
+++ b/script/meson-aux-cargo
@@ -3,7 +3,7 @@
export MESON_BUILD_ROOT="$1"
export MESON_SOURCE_ROOT="$2"
export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target
-export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
+export CARGO_HOME="$CARGO_HOME"
export OUTPUT="$3"
export BUILDTYPE="$4"
export APP_BIN="$5"
@@ -13,10 +13,10 @@
then
echo "RELEASE MODE"
- cargo build --manifest-path \
+ cargo auditable build --locked --target "$RUST_TARGET" --manifest-path \
"$MESON_SOURCE_ROOT"/Cargo.toml --release
- cp "$CARGO_TARGET_DIR"/release/"$APP_BIN" "$OUTPUT"
+ cp "$CARGO_TARGET_DIR"/"$RUST_TARGET"/release/"$APP_BIN" "$OUTPUT"
else
echo "DEBUG MODE"

View file

@ -0,0 +1,25 @@
# Template file for 'tangara-companion'
pkgname=tangara-companion
version=0.4.3
revision=1
build_style=meson
build_helper="rust"
configure_args="--buildtype release"
hostmakedepends="cargo cargo-auditable pkg-config glib-devel"
makedepends="rust-std gtk4-devel libadwaita-devel"
short_desc="Companion app for the Tangara music player"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-only"
homepage="https://github.com/haileys/tangara-companion"
changelog="https://github.com/haileys/tangara-companion/releases"
distfiles="https://github.com/haileys/tangara-companion/archive/refs/tags/v${version}.tar.gz"
checksum=d951bd2472179f16896c6e3a9845e11eaeb9fd1847f94382499546c687e7356f
post_build() {
cd crates/tangara-cli
cargo auditable build --release --locked --target "${RUST_TARGET}"
}
post_install() {
vbin "target/${RUST_TARGET}/release/tangara"
}