summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4deaed96f92603a22cf47b37b49f058c5666345 (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
# Maintainer: David Edmundson

pkgbase=telepathy-hanging-git
pkgname=('telepathy-hanging-git')
pkgver=r12.ab43734
pkgrel=1
pkgdesc="Telepathy Connection Manager for Google Talk"
arch=('i686' 'x86_64')
url="https://github.com/tiagosh/telepathy-hanging/"
license=('GPL')
makedepends=('cmake' 'git')
source=("git+https://github.com/tiagosh/telepathy-hanging")
md5sums=('SKIP')

pkgver() {
  cd telepathy-hanging
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../telepathy-hanging \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_BUILD_TYPE=Release
}

package_telepathy-hanging-git() {
  depends=('telepathy-qt5' 'libhangish-git')
  cd build
  make DESTDIR="$pkgdir" install
}