blob: 87e5444154b71181b62fb4ee51c0bb3cf8984bf0 (
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
45
46
|
# Maintainer: Amir Ali <your-email@example.com>
pkgname=arch-volume-osd
pkgver=1.0.0
pkgrel=1
pkgdesc="Lightweight on-screen display for volume changes on Arch Linux"
arch=('any')
url="https://github.com/monjar/arch-volume-osd"
license=('MIT')
depends=('bash' 'libnotify' 'pipewire-pulse')
optdepends=('wireplumber: for wpctl support (recommended)')
install=arch-volume-osd.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/monjar/arch-volume-osd/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP') # Update this after creating the release
package() {
cd "$srcdir/$pkgname-$pkgver"
# Install the main script
install -Dm755 bin/volume-osd "$pkgdir/usr/bin/volume-osd"
# Install systemd user service
install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/user/volume-osd.service" << EOF
[Unit]
Description=Volume OSD - On-screen display for volume changes
Documentation=https://github.com/monjar/arch-volume-osd
After=graphical-session.target pipewire.service pipewire-pulse.service
Wants=pipewire-pulse.service
[Service]
Type=simple
ExecStart=/usr/bin/volume-osd
Restart=on-failure
RestartSec=3
StandardOutput=null
StandardError=null
[Install]
WantedBy=default.target
EOF
# Install license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|