67 lines
2 KiB
Text
67 lines
2 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=signal-desktop
|
|
_pkgname=Signal-Desktop
|
|
pkgver=5.52.0
|
|
pkgrel=0
|
|
pkgdesc="Signal Private Messenger for Linux"
|
|
license="GPL-3.0-only"
|
|
arch="x86_64"
|
|
url="https://signal.org"
|
|
depends="hicolor-icon-theme"
|
|
makedepends="
|
|
alsa-lib-dev
|
|
git
|
|
git-lfs
|
|
gtk+3.0
|
|
nodejs
|
|
npm
|
|
openjpeg-dev
|
|
p7zip
|
|
python3
|
|
libxscrnsaver-dev
|
|
vips-dev
|
|
yarn
|
|
"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/signalapp/$_pkgname/archive/v$pkgver.tar.gz
|
|
$pkgname.desktop
|
|
expire-from-source-date-epoch.patch
|
|
"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Allow higher Node versions
|
|
sed 's#"node": "#&>=#' -i package.json
|
|
|
|
# git-lfs hook needs to be installed for one of the dependencies
|
|
git lfs install
|
|
|
|
yarn --cache-folder "$srcdir"/yarn-cache --ignore-engines --ignore-scripts install
|
|
}
|
|
|
|
build() {
|
|
USE_SYSTEM_7ZA=true yarn --cache-folder "$srcdir"/yarn-cache generate
|
|
USE_SYSTEM_7ZA=true yarn --cache-folder "$srcdir"/yarn-cache build
|
|
}
|
|
|
|
package() {
|
|
install -d "${pkgdir}/usr/"{lib,bin}
|
|
cp -a release/linux-unpacked "${pkgdir}/usr/lib/${pkgname}"
|
|
ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/"
|
|
|
|
chmod u+s "${pkgdir}/usr/lib/signal-desktop/chrome-sandbox"
|
|
|
|
install -Dm 644 "../${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
|
|
for i in 16 24 32 48 64 128 256 512 1024; do
|
|
install -Dm 644 "build/icons/png/${i}x${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
|
|
done
|
|
}
|
|
sha512sums="
|
|
64e6ff2dba4525b5bb6bc45f8f8aa422a4ac5da0688d9d6fd9b621d1c4fe288b37f1b6f4b48d92022deea4e8da155297504ea77a5434ec23099e421f3f572cfc signal-desktop-5.52.0.tar.gz
|
|
90cfee563a985bc73c4e7984715d190ae0b5c7aa887a7dc15c665980ca5cc8420b02f6c7a54e032c29e18876d5d51cfbe5027a9f0a59de3903f50fd469d73ce0 signal-desktop.desktop
|
|
1154859e87d8a2d649bc23210f2dd8aa473f268166559a51a2a64fe6ae094c101121535623b05b711bd87aab1f219627e9274fa542fdb0e5fe6f34b46fd7b7df expire-from-source-date-epoch.patch
|
|
"
|