summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ca7d596336f52ef7667b51927863083525df455 (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
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
pkgname=libringclient-git
pkgver=20161117
pkgrel=1
pkgdesc="Client communication library for ring.cx (formerly known as SFLphone)"
arch=("i686" "x86_64")
url="https://ring.cx"
license=('GPL3')
groups=("ring")
depends=("ring-daemon" "qt5-base")
makedepends=('git' 'cmake')
conflicts=('libringclient')
provides=('libringclient')
source=("git+https://gerrit-ring.savoirfairelinux.com/ring-lrc")
md5sums=('SKIP')

pkgver() {
  cd "ring-lrc"
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

build() {
  cd "ring-lrc"

  msg2 'Building...'
  mkdir -p build
  cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "ring-lrc/build"

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install

  msg2 'Cleaning up pkgdir...'
  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
  find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
}

# vim:set ts=2 sw=2 et: