blob: 328e5458469e8137f5130b6b4c6c28d1381c3025 (
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
|
pkgname=mic-indicator
pkgver=0.1.0
pkgrel=1
pkgdesc="PipeWire microphone tray indicator."
arch=('x86_64')
url="https://github.com/lincot/mic-indicator"
license=('GPL-3.0-only')
depends=('pipewire' 'qt6-base')
makedepends=('cmake')
provides=('mic-indicator')
conflicts=('mic-indicator-bin')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('e06617ddef5ca229302b076ea2220c403c5c7361645be38cc1cdf1f5cc95e010')
build() {
cd "$srcdir/$pkgname-$pkgver"
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "build/mic-indicator" "$pkgdir/usr/bin/mic-indicator"
for status in off low high; do
install -Dm644 "res/icons/mic-indicator-$status.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/mic-indicator-$status.png"
done
}
|