diff --git a/srcpkgs/tangara-companion/patches/cargo.patch b/srcpkgs/tangara-companion/patches/cargo.patch new file mode 100644 index 00000000000..d4f4d886248 --- /dev/null +++ b/srcpkgs/tangara-companion/patches/cargo.patch @@ -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" + diff --git a/srcpkgs/tangara-companion/template b/srcpkgs/tangara-companion/template new file mode 100644 index 00000000000..ae46325b897 --- /dev/null +++ b/srcpkgs/tangara-companion/template @@ -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 " +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" +}