Username: Password: Remember me
#Contributor: Janek Thomaschewski <janek@jbbr.net>
#Maintainer: tomaggio
pkgname=signal-desktop-bin
pkgver=1.22.0
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=('ea471877991f8a85b47f72f5c8e790f230a18a9e107f8beea9b1ba9375291ed33fa07d09a07da0dad74942618a2c8d2fb51b8b5d7fe7c18ad36f305249d8f68a'
            '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"
}