summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7931fae93aaefea4444728aca0d40553b29aa23f (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=biblesync-git
epoch=1
pkgver=2.0.1.1.gb16df42
pkgrel=1
pkgdesc="multicast shared co-navigation library for Bible programs"
arch=('i686' 'x86_64')
url=https://github.com/karlkleinpaste/biblesync""
license=('GPL')
depends=('gcc-libs' 'libutil-linux')
makedepends=('git')
provides=("biblesync=$pkgver")
conflicts=("biblesync")
source=("git+https://github.com/karlkleinpaste/biblesync.git")
md5sums=('SKIP')
_gitname="biblesync"

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | tr - .
}

build() {
  cd ${pkgname%-git}
  [[ -d build ]] || mkdir build
  cd build
  cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=/usr/lib ..
  make
}

package() {
  cd ${pkgname%-git}/build
  make DESTDIR="$pkgdir/" install
}