From b230197f5f9b68e0d5d008ffacd19501df18a291 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 24 Sep 2025 00:08:46 -0400
Subject: libsignal-client-0.81.0

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

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

