summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 100a3fed39ca4768100ccc8ecd4281c8b608f1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: thadah <thadahdenyse@protonmail.com>
pkgname=commet-bin
pkgver=0.5.0
pkgrel=1
pkgdesc="A client for Matrix focused on providing a feature rich experience while maintaining a simple interface"
url="https://commet.chat"
license=('AGPL-3.0-only')
arch=('x86_64')
depends=(
  'alsa-lib'
  'at-spi2-core'
  'cairo'
  'fontconfig'
  'gcc-libs'
  'gdk-pixbuf2'
  'glib2'
  'glibc'
  'gtk3'
  'harfbuzz'
  'libdrm'
  'libepoxy'
  'libkeybinder3'
  'libsoup3'
  'libx11'
  'libxcomposite'
  'libxdamage'
  'libxext'
  'libxfixes'
  'libxrandr'
  'mesa'
  'mpv'
  'pango'
  'webkit2gtk-4.1'
  'zlib'
)
provides=('commet')
conflicts=('commet')
options=('!strip')
source=("${pkgname}-${pkgver}.deb::https://github.com/commetchat/commet/releases/download/v${pkgver}/commet-ubuntu-24.04-x64.deb")
noextract=("${pkgname}-${pkgver}.deb")
sha256sums=('14eb97615069ec70985b88506c621b5fd3b40814533293cfcb2f69e2880218da')

package() {
  cd "${srcdir}"
  bsdtar -xf "${pkgname}-${pkgver}.deb" data.tar.zst
  bsdtar -xf data.tar.zst -C "${pkgdir}/"

  # Remove files that shouldn't be installed
  rm -f "${pkgdir}/commet-linux-x64.deb"
  rm -f "${pkgdir}/usr/lib/.gitkeep"

  # Create symlink in /usr/bin
  mkdir -p "${pkgdir}/usr/bin"
  ln -s /usr/lib/chat.commet.commetapp/commet "${pkgdir}/usr/bin/commet"
}