blob: f1c96548d466dc757a22f998c972fe526344d670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: tam1m <tbacc plus aur at pm dot me>
pkgname=sonusmix-git
_pkgname=sonusmix
pkgver=r195.7369dab
pkgrel=1
pkgdesc="Next-gen Pipewire audio routing tool"
arch=('x86_64')
url="https://codeberg.org/sonusmix/sonusmix"
license=('MPL-2.0')
depends=('pipewire' 'gtk4')
makedepends=('clang' 'cargo' 'git')
source=("git+https://codeberg.org/sonusmix/sonusmix" "sonusmix.desktop")
sha256sums=('SKIP'
'25bd717926a2f427dc8ed113d4f3ccb50bc36e7bab82a3911a6d2acd5457a8bd')
conflicts=('sonusmix')
pkgver() {
cd "$_pkgname"
(
set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cd "$srcdir/$_pkgname"
export CARGO_TARGET_DIR=target
cargo build --release --all-features
}
package() {
cd "$srcdir"
install -dm755 "$pkgdir/usr/share/applications"
install -dm755 "$pkgdir/usr/share/licenses/${_pkgname}"
install -dm755 "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
install -Dm755 "$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/"
install -Dm644 "$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/"
install -Dm644 "$_pkgname/assets/sonusmix.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/org.sonusmix.Sonusmix.svg"
}
|