| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.7.1 | 8 | ~amd64 | 0 |
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.14.0
EAPI=8
CRATES=""
RUST_MIN_VER="1.85.0"
declare -A GIT_CRATES=(
[egui-snarl]='https://github.com/dimtpap/egui-snarl;a0b529e23131fc5c00d995c479047557be646bb3;egui-snarl-%commit%'
[libspa-sys]='https://gitlab.freedesktop.org/dimtpap/pipewire-rs;bc3f3ddcf1d61083257f5f04b800c5a411fc2c4d;pipewire-rs-%commit%/libspa-sys'
[libspa]='https://gitlab.freedesktop.org/dimtpap/pipewire-rs;bc3f3ddcf1d61083257f5f04b800c5a411fc2c4d;pipewire-rs-%commit%/libspa'
[pipewire-sys]='https://gitlab.freedesktop.org/dimtpap/pipewire-rs;bc3f3ddcf1d61083257f5f04b800c5a411fc2c4d;pipewire-rs-%commit%/pipewire-sys'
[pipewire]='https://gitlab.freedesktop.org/dimtpap/pipewire-rs;bc3f3ddcf1d61083257f5f04b800c5a411fc2c4d;pipewire-rs-%commit%/pipewire'
)
inherit cargo desktop xdg-utils
DESCRIPTION="Low level control GUI for the PipeWire multimedia server"
HOMEPAGE="https://dimtpap.ovh/coppwr"
SRC_URI="
https://github.com/dimtpap/coppwr/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://gentoo.gogootaku.com/coppwr-${PV}-crates.tar.xz
${CARGO_CRATE_URIS}
"
LICENSE="GPL-3"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
CC0-1.0 ISC MIT OFL-1.1 UbuntuFontLicense-1.0 Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="persistence +desktop-portal"
RESTRICT="mirror"
DEPEND="
media-video/pipewire
desktop-portal? ( sys-apps/xdg-desktop-portal )
"
RDEPEND="${DEPEND}"
src_configure() {
local myfeatures=(
$(usev persistence)
$(usev desktop-portal xdg_desktop_portals)
)
cargo_src_configure
}
src_install(){
domenu assets/io.github.dimtpap.coppwr.desktop
for size in 32 48 64 128 256 512;do
newicon -s ${size} assets/icon/${size}.png io.github.dimtpap.coppwr.png
done
newicon -s scalable assets/icon/scalable.svg io.github.dimtpap.coppwr.svg
# Manually install as cargo_src_install crashes
# due to git dependencies
dobin "${S}/target/release/coppwr"
}
pkg_postinst(){
xdg_icon_cache_update
}
pkg_postrm(){
xdg_icon_cache_update
}
media-video/pipewire desktop-portal? ( sys-apps/xdg-desktop-portal )
media-video/pipewire desktop-portal? ( sys-apps/xdg-desktop-portal )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | coppwr-1.7.1-crates.tar.xz | 45130860 bytes | https://gentoo.gogootaku.com/coppwr-1.7.1-crates.tar.xz |
| DIST | coppwr-1.7.1.tar.gz | 997066 bytes | https://github.com/dimtpap/coppwr/archive/refs/tags/1.7.1.tar.gz |