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

_pkgname=Myxer
pkgname=myxer
pkgver=1.2.0
pkgrel=1
pkgdesc='A modern Volume Mixer for PulseAudio.'
arch=('x86_64' 'aarch64')
url='https://github.com/Aurailus/Myxer'
license=('GPL')
depends=('gcc-libs' 'gtk3' 'libpulse')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
        'myxer.desktop')
sha512sums=('9b09abd597e8240ca263f26fbf2a71d449c017551047c8ad83f1a304934fc15fe66845248da6c09b763ec4c8dd7e5a59533e1728ca9490f8cd85d33d845e5900'
            '7cc782ba29dbe03dc242e65880184f047ae2ebf0dd2aaa3ab534df78e2a037f5a69fe332752fce87312a452dabf3da3b70a30d6baa8059ce0216acd1333b80be')

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"
  install -Dm644 'LICENSE.md' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}