blob: 1cc00030918c2cd4d6737a8f65d2198a61f89199 (
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
35
36
37
|
# Maintainer: Jason Nader <jason.nader@protonmail.com>
pkgname=sdr-heatmap-git
pkgver=0.1.5.r229.g07041d4
pkgrel=1
pkgdesc='A tool to visualize files generated by rtl_power, inspired by heatmap.py'
arch=('x86_64')
url='https://github.com/j2ghz/sdr-heatmap'
license=('AGPL3')
depends=('gcc-libs')
makedepends=('git' 'cargo')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("${pkgname%-*}::git+$url")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname%-*}"
echo $(grep '^version =' Cargo.toml|head -n1|cut -d\' -f2).r$(git rev-list --count HEAD).g$(git describe --always)
}
prepare() {
cd "${pkgname%-*}"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${pkgname%-*}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "${pkgname%-*}"
install -Dm755 "target/release/${pkgname%-*}" "$pkgdir/usr/bin/${pkgname%-*}"
}
|