summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 521c8f719c86cb681384f886d407215141a2eb3a (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
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 269396 2016-06-12 14:49:17Z arojas $
# Maintainer: Thaodan <theodorstormgrade@gmail.com>
# Main Pkg Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
_pkgname=telepathy-qt
_pkgbase=telepathy-qt5
pkgname=$_pkgname-git
pkgver=0.9.8.r15.g188dece4
pkgrel=1
arch=(i686 x86_64)
url="http://telepathy.freedesktop.org/wiki/"
license=(LGPL)
provides=($_pkgbase $_pkgname)
makedepends=(telepathy-farstream libxslt python cmake doxygen qt5-base git)
source=(git+https://github.com/TelepathyQt/telepathy-qt.git)
md5sums=('SKIP')
validpgpkeys=('AA33B0D27868E36C151780F0FE0B6D736B1195ED') # Alexandr Akulich

pkgver()
{
  cd $_pkgname
  git describe --always --long | sed -E 's/telepathy-qt.//;s/([^-]*-g)/r\1/;s/-/./g;'
}


prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../telepathy-qt \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python \
    -DDESIRED_QT_VERSION=5 \
    -DENABLE_EXAMPLES=OFF \
    -DENABLE_TESTS=OFF
  make

}

package() {
  pkgdesc="A library for Qt5-based Telepathy clients"
  depends=(qt5-base telepathy-farstream)

  cd build
  make DESTDIR="$pkgdir" install
}