diff options
author | J2ghz | 2020-04-07 12:06:38 +0200 |
---|---|---|
committer | J2ghz | 2020-04-07 12:08:43 +0200 |
commit | 29183869a566b28769a813cb570904223ef2213a (patch) | |
tree | 883565709ca7256fdfbc88ef2eec91332090a4da | |
download | aur-sdr-heatmap.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f7764499da5c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = sdr-heatmap + pkgdesc = A tool to visualize files generated by rtl_power, inspired by heatmap.py + pkgver = 0.1.2 + pkgrel = 1 + url = https://github.com/j2ghz/sdr-heatmap + arch = x86_64 + arch = armv7l + license = AGPL3 + makedepends = cargo + depends = gcc-libs + source = sdr-heatmap-0.1.2.tar.gz::https://github.com/j2ghz/sdr-heatmap/archive/v0.1.2.tar.gz + sha512sums = ea5ab2b25290864cf9a3fef9d9428bee49c6912c52e97572834816e8f31249e3ccfcf615267ac65a444ade9295f0ae87bc062ad187fba6227a3608612dc4b3ad + +pkgname = sdr-heatmap + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..94ef827c2021 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Jozef Holly <j2.00ghz@gmail.com> +pkgname=sdr-heatmap +pkgver=0.1.2 +pkgrel=1 +pkgdesc="A tool to visualize files generated by rtl_power, inspired by heatmap.py" +arch=('x86_64' 'armv7l') +url="https://github.com/j2ghz/sdr-heatmap" +license=('AGPL3') +depends=('gcc-libs') +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/j2ghz/sdr-heatmap/archive/v$pkgver.tar.gz") +sha512sums=('ea5ab2b25290864cf9a3fef9d9428bee49c6912c52e97572834816e8f31249e3ccfcf615267ac65a444ade9295f0ae87bc062ad187fba6227a3608612dc4b3ad') + +build() { + cd "$pkgname-$pkgver" + + cargo build --release --locked --all-features +} + +check() { + cd "$pkgname-$pkgver" + + cargo test --release --locked +} + +package() { + cd "$pkgname-$pkgver" + + install -Dm755 "target/release/sdr-heatmap" "$pkgdir/usr/bin/sdr-heatmap" +} |