summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b6f4da56cc189013f7cbf4ad2733aa194832770 (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=telepathy-tank
_branch=aa13q/master
pkgname=telepathy-tank-git
pkgver=r39.596d523
pkgrel=2
pkgdesc="Matrix connection operator for the Telepathy framework"
arch=(i686 x86_64 armv7h aarch64)
url="https://telepathy.freedesktop.org/"
license=(GPL)
depends=('telepathy-qt-git' 'libquotient-git')
makedepends=(cmake git)
provides=(telepathy-tank)
conflicts=(telepathy-tank telepathy-tank-git-wip)
source=("git+https://github.com/TelepathyIM/$_gitname#branch=$_branch")
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_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_LIBEXECDIR=lib/telepathy \
    -DCMAKE_BUILD_TYPE=Release \
    -DQT_VERSION_MAJOR=5
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}