Subject: [PATCH] testing/bupstash: new aport

From: Drew DeVault <[email-masked]>
Date: Mon, 22 Mar 2021 08:52:34 -0400

---
 testing/bupstash/APKBUILD | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 testing/bupstash/APKBUILD

diff --git a/testing/bupstash/APKBUILD b/testing/bupstash/APKBUILD
new file mode 100644
index 0000000000..ade1780661
--- /dev/null
+++ b/testing/bupstash/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=bupstash
+pkgver=0.7.0
+pkgrel=0
+pkgdesc="Easy and efficient encrypted backups"
+url="https://bupstash.io/"
+arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
+license="MIT"
+makedepends="rust cargo libsodium-dev"
+options="net"
+source="$pkgname-$pkgver.tar.gz::https://github.com/andrewchambers/bupstash/archive/v$pkgver.tar.gz"
+export CARGO_HOME="$srcdir"/cargo
+export RUSTFLAGS="-C target-feature=-crt-static"
+
+build() {
+	cargo build --release --verbose
+}
+
+check() {
+	cargo test --all --release --verbose
+}
+
+package() {
+	install -Dm755 target/release/bupstash "$pkgdir"/usr/bin/bupstash
+}
+
+sha512sums="6f6d5183fac662113df6f7d4b568dd2ed0cbdb7c87474afee183e800269bfb14ec514952b17e43ca8b10be18e7a8a4428f1bf0caa143c5fb4b08aee2b2f48bcb  bupstash-0.7.0.tar.gz"
-- 
2.31.0