New package: tangara-companion-0.4.3

This commit is contained in:
classabbyamp 2025-01-08 09:03:22 -05:00
parent 81124a8acd
commit 56283741b7
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 49 additions and 0 deletions

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"
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"
}