diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-18 10:48:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-18 11:01:28 +0000 |
commit | 663da2b942d3401c9d083255c68705c974ebefea (patch) | |
tree | 6e1ef67a628157d6dfdba7876d7c4b6ab960e075 /testing | |
parent | 293fd35238b5964344a38e5ec9b9553ffcadeaae (diff) | |
download | aports-663da2b942d3401c9d083255c68705c974ebefea.tar.bz2 aports-663da2b942d3401c9d083255c68705c974ebefea.tar.xz |
testing/jsoncpp: upgrade to 1.6.0
Diffstat (limited to 'testing')
-rw-r--r-- | testing/jsoncpp/APKBUILD | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/testing/jsoncpp/APKBUILD b/testing/jsoncpp/APKBUILD index 5d42b6b0a7..8bd65abf8d 100644 --- a/testing/jsoncpp/APKBUILD +++ b/testing/jsoncpp/APKBUILD @@ -1,10 +1,10 @@ # Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=jsoncpp -pkgver=0.5.0 -pkgrel=1 +pkgver=1.6.0 +pkgrel=0 pkgdesc="JSON C++ library" -url="http://jsoncpp.sourceforge.net/" +url="https://github.com/open-source-parsers/jsoncpp" arch="all" license="PublicDomain" depends= @@ -12,9 +12,9 @@ depends_dev= makedepends="$depends_dev scons" install="" subpackages="$pkgname-dev" -source="http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/$pkgver/jsoncpp-src-$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz" -_builddir="$srcdir"/jsoncpp-src-$pkgver +_builddir="$srcdir"/jsoncpp-$pkgver prepare() { local i cd "$_builddir" @@ -27,19 +27,37 @@ prepare() { build() { cd "$_builddir" + # we cannot use cmake since jsoncpp is a dependency for cmake which + # means we would get circular buildtime deps scons platform=linux-gcc || return 1 + + # build a proper shared lib + g++ -o libjsoncpp.so.0.0.0 -shared -Wl,-soname,libjsoncpp.so.0 \ + buildscons/linux-gcc-*/src/lib_json/*.os -lpthread } package() { cd "$_builddir" mkdir -p "$pkgdir"/usr/lib - cp "$_builddir"/libs/*/libjson*.so "$pkgdir"/usr/lib/libjson.so + cp "$_builddir"/libjsoncpp.so.0.0.0 "$pkgdir"/usr/lib/ || return 1 + ln -s libjsoncpp.so.0.0.0 "$pkgdir"/usr/lib/libjsoncpp.so.0 || return 1 + ln -s libjsoncpp.so.0.0.0 "$pkgdir"/usr/lib/libjsoncpp.so || return 1 - mkdir -p "$pkgdir"/usr/include - cp -r "$_builddir"/include/json "$pkgdir"/usr/include/ - ln -sf /usr/include/json "$pkgdir"/usr/include/jsoncpp -} + mkdir -p "$pkgdir"/usr/include/jsoncpp + cp -r "$_builddir"/include/json/* "$pkgdir"/usr/include/jsoncpp/ \ + || return 1 + ln -s jsoncpp "$pkgdir"/usr/include/json -md5sums="24482b67c1cb17aac1ed1814288a3a8f jsoncpp-src-0.5.0.tar.gz" + mkdir -p "$pkgdir"/usr/lib/pkgconfig + sed -e 's:@CMAKE_INSTALL_PREFIX@:/usr:g' \ + -e 's:@LIBRARY_INSTALL_DIR@:lib:g' \ + -e 's:@INCLUDE_INSTALL_DIR@:include/jsoncpp:g'\ + -e "s:@JSONCPP_VERSION@:$pkgver:g"\ + pkg-config/jsoncpp.pc.in \ + > "$pkgdir"/usr/lib/pkgconfig/jsoncpp.pc || return 1 +} +md5sums="7c09e69cac6864f9d3ccd8c93ba8cc51 jsoncpp-1.6.0.tar.gz" +sha256sums="ff6953394be63be1c72732a7e8f152e0281bd2a8098ff04d7e81f8a167b4c139 jsoncpp-1.6.0.tar.gz" +sha512sums="22176d143de1083cac3e087488712ac1b3308a75fd7c269b4d26c4878910a10105bef6b8bc770ba06fed7912d5287cb1a45c945b26ec80e46116724264efd4e4 jsoncpp-1.6.0.tar.gz" |