summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ecdef8997ccee024ae4a5739d161da107d83779 (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
# Contributor: XavierCLL <xavier.corredor.llano (a) gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=elektra-git
pkgver=0.9.2.r91.ga40ba50ca
pkgrel=2
pkgdesc="A universal hierarchical configuration store from git master"
url="https://www.libelektra.org"
license=('custom:BSD')
arch=('i686' 'x86_64')
depends=('yajl' 'qt5-declarative' 'qt5-base' 'python' 'boost' 'swig' 
	'libuv' 'libgit2' 'libev' 'zeromq' 'gpgme' 'hicolor-icon-theme'
	'discount' 'xerces-c')
optdepends=('ruby: for ruby bindings'
	    'python2: for python2-bindings'
	    'xerces-c: for python2-bindings'
	    'lua: for lua bindings')
makedepends=('docbook-xsl' 'cmake' 'doxygen' 'git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("git+https://github.com/ElektraInitiative/libelektra.git")
sha256sums=('SKIP')

pkgver() {
  cd lib${pkgname%-git}
  git describe --tags |sed 's+-+.r+'|tr - .
}

build() {
  cd lib${pkgname%-git} 
  [[ -d build ]] || mkdir build
  cd build
  JAVA_HOME=/usr/lib/jvm/`archlinux-java get`
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
	-DCMAKE_INSTALL_RPATH:PATH=/usr/lib \
	-DPLUGINS:STRING="ALL;-ruby;-jni" \
        -DTOOLS:STRING="ALL" \
        -DBUILD_STATIC:STRING=OFF \
        -DBINDINGS:STRING="ALL;-ruby" \
        -DSWIG_EXECUTABLE:STRING="/usr/bin/swig" \
        -DLUA_INCLUDE_DIR:PATH=/usr/include \
        -DLUA_LIBRARY:STRING=/usr/lib/liblua.so ..
  make clean 
  make
}

package() {
  cd lib${pkgname%-git}/build
  make DESTDIR="$pkgdir" install
  
  install -Dm644 ../LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
}