updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jsoncpp / PKGBUILD
blobfbde4e08333db14b19ee95f7c31a6155568d7f39
1 # Author: Jonahtan Schaeffer <joschaeffer@gmail.com>
3 pkgname=jsoncpp
4 pkgver=0.5.0
5 pkgrel=1
6 pkgdesc="A JSON C++ library"
7 url="http://jsoncpp.sourceforge.net/"
8 license="Public"
9 arch=('i686' 'x86_64')
10 makedepends=('scons' 'gcc')
11 depends=('gcc-libs')
12 source=("http://sourceforge.net/projects/jsoncpp/files/jsoncpp/0.5.0/jsoncpp-src-${pkgver}.tar.gz/download")
13 md5sums=('24482b67c1cb17aac1ed1814288a3a8f')
15 build(){
16   cd ${startdir}/src/${pkgname}-src-${pkgver}
17   scons platform=linux-gcc
18   
19   mkdir -p ${pkgdir}/usr/include
20   cp -r include/json ${pkgdir}/usr/include/json
21   mkdir -p ${pkgdir}/usr/lib
22   cp buildscons/linux-gcc-*/src/lib_json/libjson_linux-gcc*libmt.so ${pkgdir}/usr/lib/
23   cd ${pkgdir}/usr/lib/ 
24   ln -sf libjson_linux-gcc-*_libmt.so libjson.so