blob: f2303b16e342a1e25a8807abeb8a3f350c68a425 (
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
|
# Maintainer: Alexey Andreyev <aa13q@ya.ru>
_gitname=libQuotient
pkgname=qt5-matrixclient-git
pkgver=r1409.f8eb9db
pkgrel=1
pkgdesc="A Qt5 library to write cross-platfrom clients for Matrix."
arch=(i686 x86_64 armv7 aarch64)
url="https://github.com/quotient-im/libQuotient"
license=(LGPLv2.1)
depends=(qt5-base qt5-olm-git)
makedepends=(cmake git)
provides=(libqmatrixclient)
conflicts=(libqmatrixclient)
source=("git+https://github.com/quotient-im/$_gitname")
md5sums=('SKIP')
pkgver() {
cd $_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake "../$_gitname" \
-DCMAKE_INSTALL_INCLUDEDIR=include/$_gitname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DUSE_INTREE_LIBQOLM:BOOL=false
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|