blob: d5fd1b4c0805c5386ab80ab3b0d153e6b9611a57 (
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
|
# Maintainer: Olivia Mackintosh <livvy@base.nu>
# Contributor: Bryce Chidester <bryce@cobryce.com>
pkgname=purple-matrix-git
pkgver=r207.1d23385
pkgrel=2
pkgdesc="Libpurple protocol plugin for matrix."
arch=('any')
url="https://github.com/matrix-org/purple-matrix"
license=('GPL2')
depends=('libpurple' 'http-parser' 'glib2' 'json-glib')
optdepends=('libolm: encryption support'
'libgcrypt: encryption support')
makedepends=('git')
provides=('purple-matrix')
conflicts=('purple-matrix')
source=('git+https://github.com/matrix-org/purple-matrix.git')
md5sums=('SKIP')
CPPFLAGS="$CPPFLAGS -O2"
pkgver() {
cd "$srcdir/${pkgname%-git}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
(pacman -Q libolm libgcrypt && make) || make MATRIX_NO_E2E=1
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR=$pkgdir install
}
|