aboutsummaryrefslogtreecommitdiffstats
path: root/community/chatty/APKBUILD
blob: 6ae88d79d706709e1d5def24de6ff0950c2ee3bf (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
65
66
67
68
69
70
71
72
73
74
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Contributor: Danct12 <danct12@disroot.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Mike Banon <mikebdp2@gmail.com>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=chatty
pkgver=0.7.0_rc4
pkgrel=0
_libcmatrix=e9854d058068df258e7c0a60979e611ad2dc7a25
_libgd=c7c7ff4e05d3fe82854219091cf116cce6b19de0
pkgdesc="XMPP and SMS messaging via libpurple and Modemmanager"
# s390x: doubt anyone would use a mainframe for texting
# ppc64le lacks the libphonenumber / libphonenumber-dev
arch="all !s390x !ppc64le"
url="https://source.puri.sm/Librem5/chatty"
license="GPL-3.0-or-later"
depends="
	cyrus-sasl
	libpurple-xmpp
	mmsd-tng
	purple-carbons
	purple-lurch
	purple-xmpp-http-upload
	"
makedepends="
	evolution-data-server-dev
	evolution-dev
	feedbackd-dev
	folks-dev
	gspell-dev
	gtk+3.0-dev
	libgee-dev
	libhandy1-dev
	libphonenumber-dev
	meson
	modemmanager-dev
	olm-dev
	pidgin-dev
	"
checkdepends="appstream-glib desktop-file-utils"
source="https://source.puri.sm/Librem5/chatty/-/archive/v$pkgver/chatty-v$pkgver.tar.gz
	https://source.puri.sm/Librem5/libcmatrix/-/archive/$_libcmatrix/libcmatrix-$_libcmatrix.tar.gz
	https://gitlab.gnome.org/GNOME/libgd/-/archive/$_libgd/libgd-$_libgd.tar.gz
	"

subpackages="$pkgname-lang $pkgname-bash-completion $pkgname-dbg"
options="!check" # Requires running Wayland compositor
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	rm -rf "$builddir"/subprojects/libgd
	rm -rf "$builddir"/subprojects/libcmatrix
	mv "$srcdir"/libgd-$_libgd "$builddir"/subprojects/libgd
	mv "$srcdir"/libcmatrix-$_libcmatrix "$builddir"/subprojects/libcmatrix

	default_prepare
}

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e0ba0bd221f5e257d9fbde6632581abf002521aa870d4062de6a30d151414be700567638af1c61eab3f3057094cc4663d1f597280c93886283246e7c3f3763cb  chatty-v0.7.0_rc4.tar.gz
9d04a121d91a04b59df85036ca868fa30a23edf7520ba44cb17c7f46cecd03fa04adf77e12c07c1e321e9d83ecca77dc3cc69d5901ce1e49d3e46369ecded26d  libcmatrix-e9854d058068df258e7c0a60979e611ad2dc7a25.tar.gz
681cc23b5a33df88a92e3aac33d0dba1c6ebb69a2bd6f15b6ae31f0b444c108f7bfd1391e604433be58d82c0032028b112652d3d0c473abe4db02d66c55cdef3  libgd-c7c7ff4e05d3fe82854219091cf116cce6b19de0.tar.gz
"