mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 14:31:23 +00:00
e6c8d720d5
* change version to 1.7.6 * cargo update cpal v0.18.0 #e5d618c6 -> #f938e338 fax v0.2.6 -> v0.2.7 fax_derive - idna_adapter v1.2.1 -> v1.2.2 js-sys v0.3.95 -> v0.3.97 wasm-bindgen v0.2.118 -> v0.2.120 wasm-bindgen-futures v0.4.68 -> v0.4.70 wasm-bindgen-macro v0.2.118 -> v0.2.120 wasm-bindgen-macro-support v0.2.118 -> v0.2.120 wasm-bindgen-shared v0.2.118 -> v0.2.120 web-sys v0.3.95 -> v0.3.97 winnow - zbus v5.14.0 -> v5.15.0 zbus_macros v5.14.0 -> v5.15.0 zbus_names v4.3.1 -> v4.3.2 zvariant v5.10.0 -> v5.10.1 zvariant_derive v5.10.0 -> v5.10.1 zvariant_utils v3.3.0 -> v3.3.1 * deps: update cargo-sources.json
48 lines
1.7 KiB
Bash
48 lines
1.7 KiB
Bash
# Maintainer: Alexander Tarasov <a.tevg@ya.ru>
|
|
pkgsubn=pwsp
|
|
pkgname=pwsp
|
|
pkgver=1.7.6
|
|
pkgrel=1
|
|
pkgdesc="Lets you play audio files through your microphone"
|
|
arch=('any')
|
|
url="https://github.com/arabianq/pipewire-soundpad"
|
|
license=('MIT')
|
|
makedepends=(clang rust cargo cmake pipewire alsa-lib)
|
|
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
prepare() {
|
|
cd "${srcdir}/pipewire-soundpad-${pkgver}"
|
|
|
|
export CARGO_HOME="${srcdir}/${pkgname%}/.cargo" # Download all to src directory, not in ~/.cargo
|
|
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/pipewire-soundpad-${pkgver}"
|
|
|
|
export CARGO_ENCODED_RUSTFLAGS="--remap-path-prefix=${srcdir}=/" # Prevent warning: 'Package contains reference to $srcdir'
|
|
[[ -n "${_sccache}" ]] && export RUSTC_WRAPPER=sccache # If $_sccache not empty, build using binary cache
|
|
|
|
export CARGO_HOME="${srcdir}/${pkgname%}/.cargo" # Use downloaded earlier from src directory, not from ~/.cargo
|
|
export CARGO_TARGET_DIR=target # Place the output in target relative to the current directory
|
|
|
|
cargo build --frozen --release
|
|
}
|
|
|
|
|
|
package() {
|
|
cd "${srcdir}/pipewire-soundpad-${pkgver}"
|
|
|
|
install -Dm755 "target/release/pwsp-cli" "${pkgdir}/usr/bin/pwsp-cli"
|
|
install -Dm755 "target/release/pwsp-daemon" "${pkgdir}/usr/bin/pwsp-daemon"
|
|
install -Dm755 "target/release/pwsp-gui" "${pkgdir}/usr/bin/pwsp-gui"
|
|
|
|
install -Dm644 "assets/pwsp-gui.desktop" "${pkgdir}/usr/share/applications/pwsp-gui.desktop"
|
|
install -Dm644 "assets/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/icon.png"
|
|
|
|
install -Dm644 "assets/pwsp-daemon.service" "${pkgdir}/usr/lib/systemd/user/pwsp-daemon.service"
|
|
}
|