Github messages for voidlinux
 help / color / Atom feed
* [PR PATCH] New package: signal-cli-0.6.2
@ 2019-07-18 12:03 voidlinux-github
  2019-07-20 22:29 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-18 12:03 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

There is a new pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

New package: signal-cli-0.6.2
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: application/text/x-diff, Size: 1528 bytes --]

From 01334c83744fbb1db2e8d2aa37b01853bc228636 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.2

---
 srcpkgs/signal-cli/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..dac72e31391
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,33 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.2
+revision=1
+archs=noarch
+hostmakedepends="gradle openjdk"
+depends="virtual?java-runtime"
+short_desc="Commandline interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=4b80322ab774611687f04296f79bde8c0188841983b619940af1d76dfd01b22b
+
+do_build() {
+	gradle build
+}
+
+do_install() {
+	gradle installDist
+
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# overwrite the search path in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s;^APP_HOME=.*;APP_HOME=/usr/lib/signal-cli/;" \
+	# adapt CLASSPATH in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "/^CLASSPATH/s/APP_HOME\/lib/APP_HOME/g"
+	
+	vbin build/install/signal-cli/bin/signal-cli
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: signal-cli-0.6.2
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
  2019-07-20 22:29 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-20 22:29 ` voidlinux-github
  2020-05-13 16:34 ` [PR PATCH] [Updated] [NOMRGE] " Piraty
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-20 22:29 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

New package: signal-cli-0.6.2
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: application/text/x-diff, Size: 1525 bytes --]

From 38f0882e248247c3c268a60a372b51bcc0f8df23 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.2

---
 srcpkgs/signal-cli/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..f787cae2fd9
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,33 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.2
+revision=1
+archs=noarch
+hostmakedepends="gradle openjdk"
+depends="virtual?java-runtime"
+short_desc="Commandline interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=4b80322ab774611687f04296f79bde8c0188841983b619940af1d76dfd01b22b
+
+do_build() {
+	gradle build
+}
+
+do_install() {
+	gradle installDist
+
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# overwrite the search path in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s;^APP_HOME=.*;APP_HOME=/usr/lib/signal-cli/;"
+	# adapt CLASSPATH in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "/^CLASSPATH/s/APP_HOME\/lib/APP_HOME/g"
+
+	vbin build/install/signal-cli/bin/signal-cli
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: signal-cli-0.6.2
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
@ 2019-07-20 22:29 ` voidlinux-github
  2019-07-20 22:29 ` voidlinux-github
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-20 22:29 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

New package: signal-cli-0.6.2
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: application/text/x-diff, Size: 1525 bytes --]

From 38f0882e248247c3c268a60a372b51bcc0f8df23 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.2

---
 srcpkgs/signal-cli/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..f787cae2fd9
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,33 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.2
+revision=1
+archs=noarch
+hostmakedepends="gradle openjdk"
+depends="virtual?java-runtime"
+short_desc="Commandline interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=4b80322ab774611687f04296f79bde8c0188841983b619940af1d76dfd01b22b
+
+do_build() {
+	gradle build
+}
+
+do_install() {
+	gradle installDist
+
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# overwrite the search path in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s;^APP_HOME=.*;APP_HOME=/usr/lib/signal-cli/;"
+	# adapt CLASSPATH in the wrapper
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "/^CLASSPATH/s/APP_HOME\/lib/APP_HOME/g"
+
+	vbin build/install/signal-cli/bin/signal-cli
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [NOMRGE] New package: signal-cli-0.6.2
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
  2019-07-20 22:29 ` [PR PATCH] [Updated] " voidlinux-github
  2019-07-20 22:29 ` voidlinux-github
@ 2020-05-13 16:34 ` Piraty
  2020-05-13 17:14 ` [WIP] New package: signal-cli-0.6.7 Piraty
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Piraty @ 2020-05-13 16:34 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

[NOMRGE] New package: signal-cli-0.6.2
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: text/x-diff, Size: 1479 bytes --]

From b232f967fab11341c277bcf035b9211d48288533 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.7

---
 srcpkgs/signal-cli/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..653f82eaa26
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,33 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.7
+revision=1
+archs=noarch
+hostmakedepends="gradle openjdk8"
+depends="virtual?java-runtime"
+short_desc="Commandline and dbus interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=5d52a7d3227bfea1acfd9a890bdea875434589e344a31c31d3ed91dabe3f2e25
+
+do_build() {
+	gradle build
+}
+
+do_install() {
+	gradle installDist
+}
+
+post_install() {
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# wrapper: adapt search path to our custom location
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s,^APP_HOME=.*,APP_HOME=/usr/lib/signal-cli/," \
+		-e "/^CLASSPATH/s,APP_HOME/lib,APP_HOME,g"
+
+	vbin build/install/signal-cli/bin/signal-cli
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WIP] New package: signal-cli-0.6.7
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (2 preceding siblings ...)
  2020-05-13 16:34 ` [PR PATCH] [Updated] [NOMRGE] " Piraty
@ 2020-05-13 17:14 ` Piraty
  2020-05-13 19:19 ` facadeproof
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Piraty @ 2020-05-13 17:14 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/13208#issuecomment-628128151

Comment:
@facadeproof if you can contribute to this, that'd speed things up

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WIP] New package: signal-cli-0.6.7
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (3 preceding siblings ...)
  2020-05-13 17:14 ` [WIP] New package: signal-cli-0.6.7 Piraty
@ 2020-05-13 19:19 ` facadeproof
  2020-05-23 10:25 ` [WIP] New package: signal-cli-java-0.6.7 m3tav3rse
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: facadeproof @ 2020-05-13 19:19 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

New comment by facadeproof on void-packages repository

https://github.com/void-linux/void-packages/pull/13208#issuecomment-628194114

Comment:
I'm new to building packages with `pkg-src`, but from what I can see in this commit the [libmatthew-unix-java](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libmatthew-unix-java) libraries are missing and they are required for sending messages through Java unix sockets. I tried compiling it from source a couple days ago following [this](http://www.matthew.ath.cx/projects/java/) and could build it, for some reason could not get any of the front ends to send messages through `signal-cli`

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WIP] New package: signal-cli-java-0.6.7
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (4 preceding siblings ...)
  2020-05-13 19:19 ` facadeproof
@ 2020-05-23 10:25 ` m3tav3rse
  2020-05-26 18:53 ` facadeproof
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: m3tav3rse @ 2020-05-23 10:25 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by m3tav3rse on void-packages repository

https://github.com/void-linux/void-packages/pull/13208#issuecomment-633022003

Comment:
@facadeproof I have similar problem but I also can't send messages from signal-cli.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WIP] New package: signal-cli-java-0.6.7
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (5 preceding siblings ...)
  2020-05-23 10:25 ` [WIP] New package: signal-cli-java-0.6.7 m3tav3rse
@ 2020-05-26 18:53 ` facadeproof
  2020-05-31 17:14 ` [PR PATCH] [Updated] " Piraty
  2020-05-31 20:09 ` [PR PATCH] [Updated] [WIP] New package: signal-cli-0.6.8 (java) Piraty
  8 siblings, 0 replies; 10+ messages in thread
From: facadeproof @ 2020-05-26 18:53 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

New comment by facadeproof on void-packages repository

https://github.com/void-linux/void-packages/pull/13208#issuecomment-634211917

Comment:
I got it working after a bit of tinkering but I'm not sure if this is the right approach. First, change the version number on this template to 0.6.8 as the newer version [does not depend on libmatthew-unix-java](https://github.com/AsamK/signal-cli/releases/tag/v0.6.8) anymore. Then, for some reason running `signal-cli -u phone_no daemon` yielded a session bus error. I'm using a tiling window manager, so I had to change my `.xinitrc` to include `exec dbus-run-session -- bspwm` and in my `bspwmrc` include `export $(dbus-launch)` because somehow, the env variables are not being set with `dbus-run-session` (which should be enough).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: signal-cli-java-0.6.7
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (6 preceding siblings ...)
  2020-05-26 18:53 ` facadeproof
@ 2020-05-31 17:14 ` Piraty
  2020-05-31 20:09 ` [PR PATCH] [Updated] [WIP] New package: signal-cli-0.6.8 (java) Piraty
  8 siblings, 0 replies; 10+ messages in thread
From: Piraty @ 2020-05-31 17:14 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

[WIP] New package: signal-cli-java-0.6.7
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

___

TODO
- [ ] mention external libraries' licenses
- [ ] fetch external libraries via `distfiles`? (see ghidra for reference)
- [ ] (optional) provide counterparts for the systemd servies (dbus related)

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: text/x-diff, Size: 1482 bytes --]

From 2828d35560df43ac08de6752339084739b9928ef Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.8

---
 srcpkgs/signal-cli/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..a9a3992fac6
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,33 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.8
+revision=1
+archs=noarch
+hostmakedepends="gradle openjdk8"
+depends="virtual?java-runtime"
+short_desc="Commandline and dbus interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=43463155418d47f11fcffc3b9231ab3f6296aee35b8c1ae0d7744822a124de37
+
+do_build() {
+	gradle -v build
+}
+
+do_install() {
+	gradle installDist
+}
+
+post_install() {
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# wrapper: adapt search path to our custom location
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s,^APP_HOME=.*,APP_HOME=/usr/lib/signal-cli/," \
+		-e "/^CLASSPATH/s,APP_HOME/lib,APP_HOME,g"
+
+	vbin build/install/signal-cli/bin/signal-cli
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: signal-cli-0.6.8 (java)
  2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
                   ` (7 preceding siblings ...)
  2020-05-31 17:14 ` [PR PATCH] [Updated] " Piraty
@ 2020-05-31 20:09 ` Piraty
  8 siblings, 0 replies; 10+ messages in thread
From: Piraty @ 2020-05-31 20:09 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages signal-cli-java
https://github.com/void-linux/void-packages/pull/13208

[WIP] New package: signal-cli-0.6.8 (java)
https://github.com/AsamK/signal-cli

Rudimentary Signal interface written in java for basic cli interactions, based on [libsignal-protocol-java](https://github.com/signalapp/libsignal-protocol-java/)

Unfortunately there doesn't seem to be anything useful based on [libsignal-protocol-c](https://github.com/signalapp/libsignal-protocol-c) yet.
I'm unsure if the package should better be named signal-cli-java instead?

Projects using it include (which i might look into packaging after some evaluation)
- https://github.com/isamert/scli
- https://github.com/TopView/signal-say

___

TODO
- [ ] mention external libraries' licenses
- [ ] fetch external libraries via `distfiles`? (see ghidra for reference)
- [ ] (optional) provide counterparts for the systemd servies (dbus related)

A patch file from https://github.com/void-linux/void-packages/pull/13208.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-signal-cli-java-13208.patch --]
[-- Type: text/x-diff, Size: 1531 bytes --]

From fe985edbf6fe075e683d6e8749139f065725bd8d Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 18 Jul 2019 13:12:32 +0200
Subject: [PATCH] New package: signal-cli-0.6.8

---
 srcpkgs/signal-cli/template | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 srcpkgs/signal-cli/template

diff --git a/srcpkgs/signal-cli/template b/srcpkgs/signal-cli/template
new file mode 100644
index 00000000000..6aa27146b26
--- /dev/null
+++ b/srcpkgs/signal-cli/template
@@ -0,0 +1,35 @@
+# Template file for 'signal-cli'
+pkgname=signal-cli
+version=0.6.8
+revision=1
+archs=noarch
+hostmakedepends="asciidoc gradle openjdk8"
+depends="virtual?java-runtime"
+short_desc="Commandline and dbus interface for libsignal-service-java"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/AsamK/signal-cli"
+distfiles="https://github.com/AsamK/signal-cli/archive/v${version}.tar.gz"
+checksum=43463155418d47f11fcffc3b9231ab3f6296aee35b8c1ae0d7744822a124de37
+
+do_build() {
+	gradle -v build
+	make -C man
+}
+
+do_install() {
+	gradle installDist
+}
+
+post_install() {
+	vmkdir usr/lib/signal-cli
+	vcopy "build/install/signal-cli/lib/*" usr/lib/signal-cli
+
+	# wrapper: adapt search path to our custom location
+	vsed -i build/install/signal-cli/bin/signal-cli \
+		-e "s,^APP_HOME=.*,APP_HOME=/usr/lib/signal-cli/," \
+		-e "/^CLASSPATH/s,APP_HOME/lib,APP_HOME,g"
+
+	vbin build/install/signal-cli/bin/signal-cli
+	vman man/signal-cli.1
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, back to index

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 12:03 [PR PATCH] New package: signal-cli-0.6.2 voidlinux-github
2019-07-20 22:29 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-20 22:29 ` voidlinux-github
2020-05-13 16:34 ` [PR PATCH] [Updated] [NOMRGE] " Piraty
2020-05-13 17:14 ` [WIP] New package: signal-cli-0.6.7 Piraty
2020-05-13 19:19 ` facadeproof
2020-05-23 10:25 ` [WIP] New package: signal-cli-java-0.6.7 m3tav3rse
2020-05-26 18:53 ` facadeproof
2020-05-31 17:14 ` [PR PATCH] [Updated] " Piraty
2020-05-31 20:09 ` [PR PATCH] [Updated] [WIP] New package: signal-cli-0.6.8 (java) Piraty

Github messages for voidlinux

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux-github

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git