Created
September 14, 2017 15:11
-
-
Save Aldarone/e097ed7377f7f9a61fbcced12b67fac5 to your computer and use it in GitHub Desktop.
Building Signal Electron for Arch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jonas Heinrich <[email protected]> | |
# Contributor: Jonas Heinrich <[email protected]> | |
# Contributor: Alda <[email protected]> | |
pkgname=signal | |
pkgver=1.0.24 | |
pkgrel=1 | |
license=('GPL3') | |
pkgdesc='Signal Private Messenger for the Desktop' | |
depends=('electron') | |
makedepends=('npm' 'ruby-sass') | |
arch=("i686" "x86_64") | |
url='https://whispersystems.org' | |
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/WhisperSystems/Signal-Desktop/archive/v${pkgver}.tar.gz" | |
"signal.desktop") | |
sha512sums=('fe87378b9af6c52aea4de4db8cf9337522b02bd96f9774dda17c5c94286ed85eb8d427d7e549d532ef00208b452d96fc1765ffea736791e075f783f730793d73' | |
'cd52561a5dcac27a5b6bbffc328c1e0d3e1479f8ebf58eaa45b8fe1c1c2d633e0d6023bfcfc2966d8964705a7b8aa59b7d03e5d315e426483bbd2cb66052e455') | |
build() { | |
cd "Signal-Desktop-${pkgver}" | |
npm install | |
npm run dist-prod | |
} | |
package() { | |
cd "Signal-Desktop-${pkgver}/dist/linux-unpacked" | |
install -Ddm755 "${pkgdir}/usr/lib/${pkgname}" | |
install -Ddm755 "${pkgdir}/usr/bin" | |
cp -r * "${pkgdir}/usr/lib/${pkgname}/" | |
install -dm755 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps | |
cp ../../build/icons/png/256.png \ | |
"${pkgdir}"/usr/share/icons/hicolor/256x256/apps/${pkgname}.png | |
install -Dm644 "${srcdir}"/${pkgname}.desktop \ | |
"${pkgdir}"/usr/share/applications/${pkgname}.desktop | |
ln -s /usr/lib/${pkgname}/signal-desktop "${pkgdir}/usr/bin/signal-desktop" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Name=Signal | |
GenericName=Messenger | |
Comment=Signal Private Messenger for the Desktop | |
Icon=signal | |
Exec=signal-desktop | |
Categories=Network;Messenger; | |
StartupNotify=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment