summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2866afece188d5f015d40203559b50fedff324b6 (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: Stephen <stephen.thomasdorin at gmail.com>
pkgname=audio-select
pkgver=0.1.1
pkgrel=1
pkgdesc='Quick and rusty pulseaudio device selection app'
url='https://github.com/sk8ersteve/audio-select'
source=("$pkgname-$pkgver.tar.gz::https://github.com/sk8ersteve/audio-select/archive/v$pkgver.tar.gz")
arch=('x86_64')
license=('MIT')
makedepends=('cargo')
sha256sums=('0cd91e0a3d1901d669b98fb7b85670726a794c70aa0cad837b33912d19a84ca5')

prepare() {
    cd $pkgname-$pkgver
    export RUSTUP_TOOLCHAIN=nightly
    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
    cd $pkgname-$pkgver
    export RUSTUP_TOOLCHAIN=nightly
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

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