mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
38 lines
781 B
Bash
38 lines
781 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit java-utils-2
|
|
|
|
DESCRIPTION="Send XMPP (Jabber) messages via command line"
|
|
HOMEPAGE="https://github.com/flowdalic/sendxmpp"
|
|
|
|
if [[ "${PV}" == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then
|
|
EGIT_REPO_URI="https://github.com/Flowdalic/sendxmpp.git"
|
|
inherit git-r3
|
|
else
|
|
SRC_URI="https://dev.gentoo.org/~flow/distfiles/sendxmpp/sendxmpp-dist-${PV}.jar.xz"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
S="${WORKDIR}"
|
|
fi
|
|
|
|
LICENSE="GPL-3+"
|
|
|
|
SLOT="0"
|
|
|
|
RDEPEND="
|
|
>=virtual/jre-17
|
|
!net-im/sendxmpp
|
|
"
|
|
|
|
src_install() {
|
|
java-pkg_newjar sendxmpp-dist-${PV}.jar sendxmpp.jar
|
|
java-pkg_dolauncher sendxmpp -jar sendxmpp.jar
|
|
|
|
insinto /var/lib/${PN}
|
|
newins - version <<-EOF
|
|
${PVR}
|
|
EOF
|
|
}
|