summaryrefslogtreecommitdiff
path: root/extra/qjson/PKGBUILD
blob: 61ca3a79973f3c35d934218cab4d231b12ae6964 (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
# $Id: PKGBUILD 145864 2012-01-03 12:44:42Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=qjson
pkgver=0.7.1
pkgrel=2
pkgdesc="A qt-based library that maps JSON data to QVariant objects"
arch=('i686' 'x86_64')
license=('GPL')
url="http://qjson.sourceforge.net"
depends=('qt')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('5a833ad606c164ed8aa69f0873366ace')

build() {
  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../${pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

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