summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle Manna2021-04-24 19:44:17 -0700
committerKyle Manna2021-04-24 19:44:17 -0700
commitbe9825237f490558ff5a94b88247a6a8411bcf37 (patch)
tree12ed5a324441e137fc264ed4978ae7ff56e46c01 /PKGBUILD
downloadaur-be9825237f490558ff5a94b88247a6a8411bcf37.tar.gz
release: Initial v2.0.3 release
* And so it begins.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7e481b800ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Kyle Manna <kyle [at] kylemanna [dot] com>
+
+pkgname=cncli
+pkgdesc='Helium Wallet'
+license=('Apache')
+url='https://github.com/helium/helium-wallet-rs'
+pkgver=2.0.3
+pkgrel=1
+arch=('x86_64')
+makedepends=('cargo')
+
+# Can't use source release because it attempts to fetch git submodules for libsodium :-/
+# "https://github.com/AndrewWestberg/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
+#sha512sums=('54cf02963b570c631cd92444c3137b5d586e90784e7a231469d292785dc122386e1dd83944a35ec45c9bb6df3aec2a51686bf8a384906fa409bddb0a968a783f')
+source=(
+ "git+https://github.com/AndrewWestberg/cncli.git#tag=v${pkgver}"
+)
+sha256sums=('SKIP')
+
+# Notes: https://wiki.archlinux.org/index.php/Rust_package_guidelines
+build() {
+ cd ${pkgname}
+ cargo build --release --locked --target-dir=target
+}
+
+check() {
+ cd ${pkgname}
+ cargo test --release --locked --target-dir=target
+}
+
+package() {
+ cd ${pkgname}
+ install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+}