From b4e9fc4ebe833ef5865bdd93a12795c1aad251a2 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 28 Oct 2025 21:39:37 -0400
Subject: libsignal-client: update to 0.84.0

---
 linhes/libsignal-client/PKGBUILD | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/linhes/libsignal-client/PKGBUILD b/linhes/libsignal-client/PKGBUILD
index 05a3878..bdc8275 100644
--- a/linhes/libsignal-client/PKGBUILD
+++ b/linhes/libsignal-client/PKGBUILD
@@ -4,13 +4,13 @@ pkgname=libsignal-client
 _pkgname=libsignal
 _libname=libsignal_jni
 _java_version=17
-pkgver=0.81.0
+pkgver=0.84.0
 pkgrel=1
 pkgdesc='Library for the Signal Protocol.'
 url="https://github.com/signalapp/${_pkgname}"
-depends=('gcc-libs')
+depends=('gcc-libs' 'java-runtime')
 checkdepends=('cargo')
-makedepends=('cargo' 'gradle' 'git' 'zip' 'protobuf' 'cmake' 'clang' 'jdk17-openjdk' 'python')
+makedepends=('cargo' 'gradle' 'git' 'zip' 'protobuf' 'cmake' 'clang' "java-environment=${_java_version}" 'python')
 options=(!lto)
 arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
 license=('AGPL-3.0-only')
@@ -18,7 +18,7 @@ source=(
     "${_pkgname}-${pkgver}.tar.gz::https://github.com/signalapp/${_pkgname}/archive/refs/tags/v$pkgver.tar.gz"
 )
 
-sha512sums=('8d0c4253baa53f6805670a7306a2a57cab41aaaa8db0438009b1450d07383429f241f752f7c3b212974d24a57edaf12273fd9596816447f7bb695688e2e8a691')
+sha512sums=('801f657543b60c9a58caf0f33b5930a7db05d9a54bb80f067be99b3d0f434800710f4f14ec6361002736c20cdf8c4b353ff9cd6a37fe212f8729715207ad5077')
 
 prepare() {
   tar xf "${_pkgname}-$pkgver.tar.gz"
@@ -39,7 +39,8 @@ build() {
 
   export RUSTUP_TOOLCHAIN=stable
   export CARGO_TARGET_DIR=target
-  export JAVA_HOME="/usr/lib/jvm/java-${_java_version}-openjdk"
+  export CARGO_NET_GIT_FETCH_WITH_CLI=true
+  export JAVA_HOME="$(ls -d /usr/lib/jvm/java-${_java_version}-* | head -n1)"
   ./build_jni.sh desktop
   GRADLE_USER_HOME="${srcdir}/.gradle" ./gradlew --no-daemon :client:assemble -PskipAndroid=true
 
-- 
cgit v0.12

