summaryrefslogtreecommitdiff
path: root/extra/jsoncpp/PKGBUILD
blob: 9f4411c43d28becd24444dffea83bcd40ba1af08 (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
# $Id: PKGBUILD 188521 2013-06-15 07:18:30Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Jonahtan Schaeffer <joschaeffer@gmail.com>
# COntributor: Drake Arconis <lightdrake@gmail.com>

pkgname=jsoncpp
pkgver=0.5.0
pkgrel=4
pkgdesc="A JSON C++ library"
url='http://jsoncpp.sourceforge.net/'
license=('custom:Public_Domain')
arch=('i686' 'x86_64' 'mips64el')
depends=('gcc-libs')
makedepends=('scons')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-src-${pkgver}.tar.gz")
md5sums=('24482b67c1cb17aac1ed1814288a3a8f')

build() {
  cd ${pkgname}-src-${pkgver}
  scons platform=linux-gcc
}

package() {
  cd ${pkgname}-src-${pkgver}

  install -d "${pkgdir}"/usr/include/jsoncpp
  cp -r include/json "${pkgdir}"/usr/include/jsoncpp/json

  install -Dm644 buildscons/linux-gcc-*/src/lib_json/libjson_linux-gcc*libmt.so \
    "${pkgdir}"/usr/lib/libjsoncpp.so

  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}