blob: 9a0361574ace10c1336c21c8128bfb9cd2f2c62b (
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
|
#Maintainer: d.r.vanrossum at gmx dot de
pkgname=minidsp-rs
pkgver=0.1.9
pkgrel=1
pkgdesc="Alternative control software for certain MiniDSP products"
arch=(x86_64)
url="https://github.com/mrene/minidsp-rs"
license=('APACHE')
depends=('gcc-libs' 'libusb')
makedepends=('git' 'clang' 'cmake' 'rust')
source=("minidsp.tar.gz"::"https://github.com/mrene/$pkgname/archive/refs/tags/v${pkgver}.tar.gz")
options=('!lto')
sha256sums=('caf9db7418bf9e7fccaeb7664af56a70dc67eb7eb31073ace34406c71b6d246f')
build() {
cd "$pkgname-$pkgver"
cargo build --release --bin minidsp
}
check() {
cd "$pkgname-$pkgver"
cargo test --release --bin minidsp
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 target/release/minidsp -t "${pkgdir}/usr/bin"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|