Username: Password: Remember me
# Maintainer: Mark Haferkamp <chakralinux dot org at refola dot com>
# Contributor: Tom Arden <tomomelley@gmx.de>
# Contributor: Janek Thomaschewski <janek@jbbr.net>
 
pkgname=signal-desktop-bin
pkgver=1.37.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')
source=("https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${pkgver}_amd64.deb"
        'signal-desktop')
b2sums=('ffdad25fdfe32a8e5ff3ce47c69edf286e0d34eb4ec4bcf88d9e8ebdf26e898901048e3d18ffe599ea8af616bf12f1cbc041f7fd08a3c135d879c34578aa6aae'
        'cdb3beaa799567e06a13022647e113fc24367f00bc4f5d9632956c85ab0aab2ec986bd03426c06572760335ef4e0536adbd399cd414706df1b81723b6a84a1db')
 
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"
}