# Contributor: Siva Mahadevan # Contributor: Simon Frankenberger # Maintainer: Simon Frankenberger pkgname=signal-cli pkgver=0.12.0 pkgrel=0 pkgdesc="commandline interface for libsignal-service-java" url="https://github.com/AsamK/signal-cli" # jdk17 only available on 64 bit archs # cargo and rust not available on s390x and riscv64 # java-libsignal-client not available on aarch64 # ppc64le: no openjdk17-jdk arch="x86_64" license="GPL-3.0-or-later" depends="java-libsignal-client" makedepends="openjdk17-jdk" source="$pkgname-$pkgver.tar.gz::https://github.com/AsamK/signal-cli/archive/v$pkgver.tar.gz" build() { ./gradlew installDist } check() { ./gradlew check } package() { local buildhome="build/install/$pkgname" local installhome="/usr/share/java/$pkgname" install -dm755 "$pkgdir/$installhome/lib" install -m644 "$buildhome"/lib/* "$pkgdir/$installhome/lib" install -Dm755 "$buildhome/bin/$pkgname" "$pkgdir/$installhome/bin/$pkgname" install -dm755 "$pkgdir/usr/bin" ln -s "$installhome/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" rm -v "$pkgdir/$installhome/lib"/libsignal-client-*.jar ln -sv /usr/share/java/libsignal-client/signal-client-java.jar "$pkgdir/$installhome/lib/signal-client-java.jar" sed -i -e 's/libsignal-client-[0-9.]\+\.jar/signal-client-java.jar/g' "$pkgdir/$installhome/bin/$pkgname" } sha512sums=" 49eaa1edb9b2e95e6a33a86c26f26e0c72a19f033ffdb4eab701867bb4d0c463f8ebcb1ed89ac4b73db58e10db83990b1ec5bf7841858231dc0238267ef130f3 signal-cli-0.12.0.tar.gz "