summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cccad3361f461893d966b5acc232a600456d248 (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
46
47
48
49
50
51
52
53
# Maintainer: Johan Rehnberg <cleanrock@gmail.com>
pkgname=flobby-git
pkgver=0.2.131.g708b76c
pkgrel=1
pkgdesc="spring lobby client"
arch=('i686' 'x86_64')
url="https://github.com/cleanrock/flobby"
license=('GPL2')
groups=()
depends=('jsoncpp' 'graphicsmagick' 'libxpm' 'libxss' 'boost-libs' 'curl')
makedepends=('git' 'cmake' 'boost')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git://github.com/cleanrock/flobby.git')
noextract=()
md5sums=('SKIP')

_gitname=flobby

pkgver() {
  cd "$srcdir/$_gitname"
  # package version is Tag.CommitsSinceTag.CommitId, e.g 0.2.0.gab34413
  git describe --long | sed 's|-|.|g'
}

prepare() {
  cd "$srcdir/$_gitname"
  git submodule init
  git submodule update
}

build() {
  mkdir "$srcdir/$_gitname/build"
  cd "$srcdir/$_gitname/build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  
  # use this cmake line instead of above to skip building and installing pr-downloader
  #cmake -DWITH_PRD=OFF -DCMAKE_INSTALL_PREFIX=/usr ..

  make
}

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

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