Username: Password: Remember me
#Contributor: Janek Thomaschewski <janek@jbbr.net>
#Maintainer: tomaggio
pkgname=signal-desktop-bin
pkgver=1.26.2
pkgrel=1
pkgdesc='Private messaging from your desktop'
arch=('x86_64')
url='https://github.com/WhisperSystems/Signal-Desktop'
license=('GPL3')
provides=('signal-desktop')
conflicts=('signal')
options=(!strip)
depends=('gconf' 'gtk2' 'libnotify' 'libxtst' 'nss' 'xdg-utils' 'desktop-file-utils' 'libxss')
 
sha512sums=('3eaadbc5ae5b22153371f0781dc402a7df8fc7c7475566752050acc5a3bd7d982e11671116a03f3ad84d57b6a4c5a4152048bdef446b814cd77c31a624d308e5'
            'f04626ca425f79129616ba25732b07b0fc50aab1dbe9bd3e79514e8a0ba3b382ee37f99ad9f32ca9359fbe1db3efe67d0d207610836634d28c2401b5729f07af')
source=("https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${pkgver}_amd64.deb"
        'signal-desktop')
 
prepare() {
    # Extract data
    bsdtar xf data.tar.xz
}
 
package() {
  # Recursively remove group's write permission before moving to package directory
  chmod -R g-w usr opt
 
  # move data
  mv opt "${pkgdir}"
  mv usr "${pkgdir}"
 
  mkdir "${pkgdir}/usr/bin"
  install -D -m755 signal-desktop "${pkgdir}/usr/bin/signal-desktop"
}