File PKGBUILD of Package telepathy-qt

# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=telepathy-qt
pkgver=0.9.7-99
pkgrel=1
arch=(i686 x86_64)
url="https://telepathy.freedesktop.org/wiki/"
license=(LGPL)
pkgdesc="A library for Qt-based Telepathy clients"
depends=(qt5-base telepathy-farstream)
makedepends=(cmake git doxygen python python-dbus qt5-tools)
provides=(telepathy-qt)
conflicts=(telepathy-qt)

# source=("git+https://github.com/TelepathyIM/telepathy-qt.git")
source=("${pkgname}-${pkgver}.tar.xz")
md5sums=('SKIP')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DDESIRED_QT_VERSION=5 \
    -DENABLE_EXAMPLES=OFF \
    -DENABLE_TESTS=OFF
  make
}

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