summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e63ce5132b605b0be7036108cce95aee61cc3b48 (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
# Maintainer: Simon Schäfer <simon.schaefer+aur@koeln.de>
pkgname=qjsonrpc
pkgver=r348.f85751b
pkgrel=1
pkgdesc="QJsonRpc is a Qt implementation of the JSON-RPC protocol. It integrates nicely with Qt, leveraging Qt's meta object system in order to provide services over the JSON-RPC protocol"
arch=('i686' 'x86_64')
url='https://bitbucket.org/devonit/qjsonrpc'
license=('LGPL2')
depends=('qt5-base')
makedepends=('git')
source=('git+https://bitbucket.org/devonit/qjsonrpc.git')
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build

  qmake ../${pkgname}
  make
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install
}