summaryrefslogtreecommitdiff
path: root/extra/qjson/PKGBUILD
blob: 94f52affef2bdde67774724bccac700c3aad0052 (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
# $Id: PKGBUILD 178982 2013-03-01 10:23:51Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=qjson
pkgver=0.8.1
pkgrel=2
pkgdesc="A qt-based library that maps JSON data to QVariant objects"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://qjson.sourceforge.net"
depends=('qt4')
makedepends=('cmake')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/flavio/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('4eef13da988edf8f91c260a3e1baeea9')

build() {
  . /etc/profile.d/qt4.sh

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

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