Subject: [PATCH] testing/signal-cli: new aport

From: Siva Mahadevan <[email-masked]>
Date: Sun, 17 Jan 2021 16:42:55 -0500

https://github.com/AsamK/signal-cli
commandline interface for libsignal-service-java
---
 testing/signal-cli/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/signal-cli/APKBUILD

diff --git a/testing/signal-cli/APKBUILD b/testing/signal-cli/APKBUILD
new file mode 100644
index 0000000000..c29d13da32
--- /dev/null
+++ b/testing/signal-cli/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Siva Mahadevan <[email-masked]>
+# Maintainer: Siva Mahadevan <[email-masked]>
+pkgname=signal-cli
+pkgver=0.7.2
+pkgrel=0
+pkgdesc="commandline interface for libsignal-service-java"
+url="https://github.com/AsamK/signal-cli"
+arch="noarch"
+license="GPL-3.0"
+depends="openjdk11-jre-headless"
+makedepends="openjdk11-jdk gradle"
+source="$pkgname-$pkgver.tar.gz::https://github.com/AsamK/signal-cli/archive/v$pkgver.tar.gz"
+
+build() {
+	JAVA_HOME="/usr/lib/jvm/java-11-openjdk" gradle installDist
+}
+
+check() {
+	JAVA_HOME="/usr/lib/jvm/java-11-openjdk" gradle check
+}
+
+package() {
+	local buildhome="build/install/$pkgname"
+	local installhome="/usr/share/java/$pkgname"
+
+	install -dm755 "$pkgdir/$installhome/lib"
+	install -m644 "$buildhome"/lib/* "$pkgdir/$installhome/lib"
+
+	install -Dm755 "$buildhome/bin/$pkgname" "$pkgdir/$installhome/bin/$pkgname"
+	install -dm755 "$pkgdir/usr/bin"
+	ln -s "$installhome/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+
+sha512sums="7ab8ed580872cdc42a541c9a51c6c1b9bf2e36eba6da2ba2b7e5f3cdf63799131cfaf836ed3b387bd42b4bdf56842f98847eeb1bc5bc76e0905b1aee793cfb5a  signal-cli-0.7.2.tar.gz"
-- 
2.30.0

---

From: maxice8 <[email-masked]>
Date: Sun, 17 Jan 2021 19:05:27 -0300

> +++ b/testing/signal-cli/APKBUILD

Please use a `SPDX` compliant identifier for the license, it means your
GPL-3.0 license is missing a `-or-later` or `-only` suffix.

> +source="$pkgname-$pkgver.tar.gz::
> https://github.com/AsamK/signal-cli/archive/v$pkgver.tar.gz"
> +
> +build() {
> +sha512sums="7ab8ed580872cdc42a541c9a51c6c1b9bf2e36eba6da2ba2b7e5f3cd
> f63799131cfaf836ed3b387bd42b4bdf56842f98847eeb1bc5bc76e0905b1aee793cf
> b5a  signal-cli-0.7.2.tar.gz"