Username: Password: Remember me
# NOTICE: This is this package's last update on the CCR until someone
# else adopts it. If you do so, then please update the "Maintainer"
# line below with your information. You may also find the following
# PKGBUILD update script useful:
# https://gist.github.com/refola/40c253c379e2c182c789aebf16bc51e6
 
# Maintainer: Your Name Here <email address at domain dot tld>
# Contributor: 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.38.1
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=('3701d4f1a6b65a6fd5b2ef67d3b74e37037c10f3eef299806589f842dd350b1d4bd05bbd037c7a8c40e8a70b4c54f9321104e4df2ede8f26215198280831bef9'
        '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"
}