# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=telepathy-morse
pkgver=0.1.0
pkgrel=3
pkgdesc="Telepathy Connection Manager for the Telegram network"
arch=(x86_64)
url="https://github.com/TelepathyQt/telepathy-morse"
license=(GPL)
depends=(telepathy-qt telegram-qt)
makedepends=(cmake)
source=("https://github.com/TelepathyQt/telepathy-morse/archive/$pkgname-$pkgver.tar.gz")
sha256sums=('c9c361ef965b176a43e05d204eff7d83e508f4fcc3fd842c32a57187a3c7ce8f')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_LIBEXECDIR=lib/telepathy
  make
}

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