summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc437735c1eaa38a03c0b15869442a145d274759 (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
# Maintainer: gbr <gbr@protonmail.com>

pkgname=rsmixer
pkgver=0.2.4
pkgrel=1
pkgdesc='PulseAudio volume mixer for the terminal'
arch=('x86_64')
url=https://github.com/jantap/rsmixer
license=('MIT')
depends=('gcc-libs' 'libpulse')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('33666f4cda64844544c14984cd8a1fa4679e6b82cd5537faff1656a5aebcf3ab3445195bcc0bcc5ca7a2327ab694b67dec5b8e15b6862f932bc075acbde8bda1')

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

check() {
  cd "$pkgname-$pkgver"
  cargo test --locked --release
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
}