Commit c493818e authored by Ariadne Conill's avatar Ariadne Conill

testing/jsoncpp: new aport

parent 35e728f0
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=jsoncpp
pkgver=0.5.0
pkgrel=0
pkgdesc="JSON C++ library"
url="http://jsoncpp.sourceforge.net/"
arch="all"
license="PublicDomain"
depends=
depends_dev=
makedepends="$depends_dev scons"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/$pkgver/jsoncpp-src-$pkgver.tar.gz"
_builddir="$srcdir"/jsoncpp-src-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
scons platform=linux-gcc || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/lib
cp "$_builddir"/libs/*/libjson*.so "$pkgdir"/usr/lib/libjson.so
mkdir -p "$pkgdir"/usr/include
cp -r "$_builddir"/include/* "$pkgdir"/usr/include/
}
md5sums="24482b67c1cb17aac1ed1814288a3a8f jsoncpp-src-0.5.0.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment