summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae84b9bfb82335210842b2c098fc3f616657e38b (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
# Maintainer: geno+dev@fireorbit.de

pkgname=purism-chatty-git
pkgver=0.0.7.r1.ga22c183
pkgrel=1
pkgdesc="XMPP and SMS messaging via libpurple and Modemmanager"
url="https://source.puri.sm/Librem5/chatty"
license=(LGPL2.1)
arch=(i686 x86_64 armv6h armv7h)
depends=(gtk3 libpurple)
optdepends=('libpurple-lurch: XMPP E2E OMEMO encryption' 'libpurple-carbons: XMPP Carbon Copy - Live multiple device support' 'purple-xmpp-http-upload: XMPP HTTP Upload - Filesharing')
makedepends=(pkg-config meson libhandy)
provides=(purism-chatty)
conflicts=(purism-chatty)
source=("git+https://source.puri.sm/Librem5/chatty.git")
md5sums=(SKIP)

pkgver() {
    git -C chatty describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    rm -rf build
    arch-meson chatty build -Dexamples=false -Dgtk_doc=true
    ninja -C build
}

package() {
    DESTDIR="${pkgdir}" ninja -C build install
}