summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8058a29d0a79fbc3fd6c6d75a36c5f84e0425f4 (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: Giovanni 'ItachiSan' Santini <giovannisantini93@yahoo.it>
# Maintainer: Antonio Rojas <arojas@archlinux.org>

_gitname=telepathy-morse
pkgname=telepathy-morse-git
pkgver=r224.0a84492
pkgrel=1
pkgdesc="Telepathy Connection Manager for the Telegram network"
arch=(i686 x86_64)
url="https://projects.kde.org/telepathy-morse/"
license=(GPL)
depends=(telepathy-qt telegram-qt-git)
makedepends=(cmake git)
provides=(telepathy-morse)
conflicts=(telepathy-morse)
source=("git+https://github.com/TelepathyQt/$_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 ../telepathy-morse \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_LIBEXECDIR=lib/telepathy \
    -DCMAKE_BUILD_TYPE=Release
  make
}

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