summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5492135bb427c140f1944bc9068d56c6f2856774 (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
56
57
58
59
60
61
62
63
64
# SPDX-License-Identifier: AGPL-3.0

# Maintainer: Sam Day <me@samcday.com>
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Maintainer: Truocolo <truocolo@aol.com>
# Contributor: Sam Whited <sam@samwhited.com>
# Contributor: geno <dev@fireorbit.de>
# Contributor: <luntik2012@gmail.com>
# Contributor: Julian Fairfax <juliannfairfax@protonmail.com> 
# Contributor: vpzomtrrfrt <colin@vpzom.click>

pkgname=gnome-chatty
# NOTE! Make sure to update the libcmatrixrev that Chatty is using when bumping Chatty version.
# See below for more info.
pkgver=0.8.2
pkgrel=3
pkgdesc='XMPP and SMS messaging via libpurple and ModemManager'
url='https://gitlab.gnome.org/World/Chatty'
license=(
  GPL3
)
arch=(aarch64 x86_64)
depends=(
  evolution-data-server
  feedbackd
  gnome-desktop-4
  libadwaita
  libhandy
  libmm-glib
  libolm
  libpurple-carbons
)
optdepends=(
  'libpurple-lurch: XMPP E2E OMEMO encryption'
  'purple-xmpp-http-upload: XMPP HTTP Upload - Filesharing'
)
makedepends=(
  itstool
  meson
  pkg-config
)
_srcname="Chatty-v${pkgver}"
source=("${url}/-/archive/v${pkgver}/${_srcname}.tar.gz")

# The following is a temporary hack to workaround upstream not including libcmatrix in source tarball:
# https://gitlab.gnome.org/World/Chatty/-/issues/869
# libcmatrix doesn't have a tagged release yet, so just download the rev that Chatty is using.
_libcmatrixrev='702b894675f12ecd43439b3b3eee66cc74899b82'
source+=("https://source.puri.sm/Librem5/libcmatrix/-/archive/${_libcmatrixrev}/libcmatrix-main.tar.gz")

sha256sums=('02bd3a7c64655becc962b6df5c391b295c2030cc6e5e3f58da8f0bb5afceb6eb'
            '68e06a610bf86ddb83d6567617228fa66eeb14a2ee3ed90f3a9d04ad8569e951')

build() {
  cp -R libcmatrix-702b894675f12ecd43439b3b3eee66cc74899b82/* "${_srcname}/subprojects/libcmatrix"
  cd "${_srcname}"
  arch-meson build
  meson compile -C build
}

package() {
  cd "${_srcname}"
  meson install -C build --destdir "$pkgdir"
}