summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-01-03 20:16:42 -0500
committerYixun Lan <dlan@gentoo.org>2024-01-06 09:54:54 +0000
commit6118727698c46180cfeb575d1b77278707df15d3 (patch)
tree9f6486ff3e04db4379c006585b93e658d213fc70 /net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild
parentnet-im/signal-cli-bin: add myself as a maintainer (diff)
downloadgentoo-6118727698c46180cfeb575d1b77278707df15d3.tar.gz
gentoo-6118727698c46180cfeb575d1b77278707df15d3.tar.bz2
gentoo-6118727698c46180cfeb575d1b77278707df15d3.zip
net-im/signal-cli-bin: add 0.12.7
Closes: https://github.com/gentoo/gentoo/pull/34199 Signed-off-by: Julien Roy <julien@jroy.ca> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild')
-rw-r--r--net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild b/net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild
new file mode 100644
index 000000000000..f999bcefa5ee
--- /dev/null
+++ b/net-im/signal-cli-bin/signal-cli-bin-0.12.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="signal-cli-${PV}"
+DESCRIPTION="Send and receive messages of Signal Messenger over a command line interface"
+HOMEPAGE="https://github.com/AsamK/signal-cli/wiki"
+SRC_URI="
+ https://github.com/AsamK/signal-cli/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.gh.tar.gz
+ https://github.com/AsamK/signal-cli/raw/v${PV}/README.md -> ${P}.README.md
+ https://github.com/AsamK/signal-cli/raw/v${PV}/man/signal-cli.1.adoc -> ${P}.signal-cli.1.adoc
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ || ( virtual/jdk:17 virtual/jre:17 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ app-text/asciidoc
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.11.3-use-working-java-version.patch"
+)
+
+src_unpack() {
+ default
+ cp "${DISTDIR}/${P}.signal-cli.1.adoc" signal-cli.1.adoc || die
+}
+
+src_compile() {
+ default
+ a2x --no-xmllint --doctype manpage --format manpage "${WORKDIR}/signal-cli.1.adoc" || die
+}
+
+src_install() {
+ insinto /usr
+ doins -r lib
+ dobin bin/signal-cli
+ newdoc "${DISTDIR}/${P}.README.md" README.md
+ doman "${WORKDIR}/signal-cli.1"
+}
+
+pkg_postinst() {
+ elog "Please read /usr/share/doc/${PF}/README.md.bz2"
+ elog "how to register signal-cli with the signal service and how to send"
+ elog "and receive messages"
+}