summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c7e96c54b56b1c1b4517433d9c0feb6e2129ecc (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.8.r136.g98b09f35d
pkgrel=1
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
}