backports/signal-desktop: import upstream changes

This commit is contained in:
Antoine Martin 2024-09-27 17:32:59 -04:00
parent 7e21600868
commit 63f6a6099f
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,5 +1,6 @@
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=signal-desktop
pkgver=7.26.0
pkgrel=0
@ -237,6 +238,7 @@ prepare() {
\! -path "*third_party/$_lib/chromium/*" \
\! -path "*third_party/$_lib/google/*" \
\! -path './base/third_party/icu/*' \
\! -path './third_party/libxml/*' \
\! -path './third_party/re2/*' \
\! -path './third_party/pdfium/third_party/freetype/include/pstables.h' \
\! -path './third_party/harfbuzz-ng/utils/hb_scoped.h' \
@ -292,7 +294,7 @@ prepare() {
sed -i 's/unknown-linux-gnu/alpine-linux-musl/g' binding.gyp
msg "Installing libsignal js dependencies"
npm install --ignore-scripts
yarn --ignore-scripts --frozen-lockfile
)
# remove shipped fonts for system-provided (part 1)
@ -358,7 +360,6 @@ build() {
(
cd "$srcdir"/ringrtc-$_ringrtcver/src/node
msg "Building ringrtc JS glue code"
npm ci --ignore-scripts
npm run build
msg "Cleaning dev dependencies for ringrtc"
@ -377,7 +378,6 @@ build() {
mv build/Release/libsignal_client_linux_$chromium_arch.node prebuilds/linux-$chromium_arch/node.napi.node
msg "Building libsignal glue code"
npm ci --ignore-scripts
npm run tsc
msg "Cleaning dev dependencies for libsignal"
@ -398,7 +398,7 @@ build() {
rm -rf node_modules/dtrace-provider
# get esbuild installed (needed for next step)
npm install esbuild
npm rebuild esbuild
# build front
NODE_ENV=production \