summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6136b0fd78a983a7bb77d4e49c2176e9fcf4ea39 (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
# Maintainer: Alex Avance <aravance(at)gmail(dot)com>

_pkgname=volume-sync
pkgname=$_pkgname-git
pkgver=7.3d26107
pkgrel=1
pkgdesc="A utility for keeping volume in sync across multiple pulse volume sinks"
url="https://github.com/aravance/volume-sync"
depends=('libpulse')
makedepends=('cargo')
arch=('x86_64')
source=("volume-sync::git+https://github.com/aravance/volume-sync.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  cargo build --release --locked
}

package() {
  cd "$_pkgname"
  install -Dm0755 -t "$pkgdir/usr/bin" "target/release/$_pkgname"
}