aboutsummaryrefslogtreecommitdiffstats
path: root/community/dino/APKBUILD
blob: cc6eed9c75784fd0dd1d02727128e6c74c098fae (plain) (blame)
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
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=dino
pkgver=0.2.2
pkgrel=0
pkgdesc="Modern Jabber/XMPP client"
url="https://dino.im"
arch="all !s390x !mips !mips64"  # libhandy missing
license="GPL-3.0-only"
makedepends="
	glib-dev
	glib-networking
	gtk+3.0-dev
	gpgme-dev
	libgee-dev
	libsignal-protocol-c-dev
	libgcrypt-dev
	libsoup-dev
	sqlite-dev
	libqrencode-dev
	libhandy-dev
	cmake
	vala
	ninja
"
subpackages="$pkgname-lang"
source="
	https://github.com/dino/dino/releases/download/v$pkgver/dino-$pkgver.tar.gz
	mobile-ui.patch
	"

# secfixes:
#   0.2.1-r0:
#     - CVE-2021-33896

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-tests
	make
}

check() {
	build/xmpp-vala-test
	build/signal-protocol-vala-test
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="
6c973b0b88e2c8aecbab694b456762973c5f60217bbf6bc81f4d81226fe8124596bddfe7c190f35307ec3ad6376858ce8f686c74aaebec133124377d8a9e4898  dino-0.2.2.tar.gz
924c83719fb0b7093bccd3ba27ecef6e8a4b88bc17e88f826b79ca59e3e80f936a7e3d31ad90812cccebac6094e89a398182016598483620bc1ce3a1591c97e0  mobile-ui.patch
"