blob: 21961a06d9be46d26a7b1b121f0e9a8472de4ad1 (
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
|
# Maintainer: Jasper <j@sperp.dev> -> https://github.com/jaspwr
pkgname=volapplet-git
pkgver=r39.5c794c0
pkgrel=1
pkgdesc="A simple GTK system tray volume controller applet for pulseaudio."
depends=('gtk3' 'pulse-native-provider')
makedepends=('rust' 'cargo' 'git')
license=('GPL3')
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/jaspwr/vol-applet"
source=("$pkgname::git+https://github.com/jaspwr/vol-applet#branch=main")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$pkgname"
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release
}
package() {
cd "$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/volapplet"
}
|