diff options
Diffstat (limited to 'linhes/libsignal-client/PKGBUILD')
-rw-r--r-- | linhes/libsignal-client/PKGBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/linhes/libsignal-client/PKGBUILD b/linhes/libsignal-client/PKGBUILD index d40fe3f..ab23adc 100644 --- a/linhes/libsignal-client/PKGBUILD +++ b/linhes/libsignal-client/PKGBUILD @@ -3,7 +3,7 @@ pkgname=libsignal-client _pkgname=libsignal _libname=libsignal_jni -pkgver=0.52.2 +pkgver=0.56.0 pkgrel=1 pkgdesc='Library for the Signal Protocol.' url="https://github.com/signalapp/${_pkgname}" @@ -17,7 +17,7 @@ source=( "${_pkgname}-${pkgver}.tar.gz::https://github.com/signalapp/${_pkgname}/archive/refs/tags/v$pkgver.tar.gz" ) -sha512sums=('979129607f34455039558500b0417220b9be26403ecb56415b66eb9fa69dda4c25d4ae4bfa7a222044785b6033fc3e248e7a080b0d7efec9a6d98f22f75050b0') +sha512sums=('72d264cb527b954df73da37b602657d63dafe320562d3b53dd3f7e44a85106730afdc25f601fa056a16fe6cb954d4d99bc2b632ee92321addf3de48ed7a10ba4') prepare() { tar xf "${_pkgname}-$pkgver.tar.gz" @@ -26,6 +26,7 @@ prepare() { # Use the default system rust toolchain # rm -f rust-toolchain + sed -i 's/exit 2//' java/build_jni.sh sed -i "s/cargo build/cargo build --frozen/" java/build_jni.sh cargo fetch --locked --target "$(rustc -vV | awk '/^host: / {print $2}')" @@ -37,16 +38,16 @@ build() { export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target ./build_jni.sh desktop - GRADLE_USER_HOME="${srcdir}/.gradle" gradle --no-daemon assemble -PskipAndroid=true + GRADLE_USER_HOME="${srcdir}/.gradle" gradle --no-daemon :client:assemble -PskipAndroid=true - zip -d "client/build/libs/libsignal-client-${pkgver}.jar" "${_libname}.so" + zip -d "client/build/libs/libsignal-client-${pkgver}.jar" "${_libname}*.so" } -check() { - cd "${_pkgname}-${pkgver}" - export RUSTUP_TOOLCHAIN=stable - cargo test --frozen -} +#check() { +# cd "${_pkgname}-${pkgver}" +# export RUSTUP_TOOLCHAIN=stable +# cargo test --frozen +#} package() { cd "${_pkgname}-${pkgver}" @@ -54,5 +55,5 @@ package() { install -m755 -d "${pkgdir}/usr/share/java/${pkgname}" "${pkgdir}/usr/lib" install -Dm644 "java/client/build/libs/libsignal-client-${pkgver}.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar" - install -Dm644 "target/release/${_libname}.so" "$pkgdir/usr/lib/" + install -Dm644 "target/"*"/release/${_libname}.so" "$pkgdir/usr/lib/${_libname}.so" } |