[arch-commits] Commit in json-c/trunk (PKGBUILD)

2020-07-29 Thread Jan Steffens via arch-commits
Date: Wednesday, July 29, 2020 @ 22:24:28
  Author: heftig
Revision: 392702

0.15-1

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-29 22:21:52 UTC (rev 392701)
+++ PKGBUILD2020-07-29 22:24:28 UTC (rev 392702)
@@ -1,10 +1,10 @@
-# Maintainer: Jan Alexander Steffens (heftig) 
+# Maintainer: Jan Alexander Steffens (heftig) 
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
 
 pkgname=json-c
-pkgver=0.14
-pkgrel=4
+pkgver=0.15
+pkgrel=1
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
@@ -12,7 +12,7 @@
 depends=(glibc)
 makedepends=(git cmake)
 provides=(libjson-c.so)
-_commit=bae2f10c436eaf0d95746cbc5f1c1f0ecb866a8e  # tags/json-c-0.14-20200419^0
+_commit=9021cdcdd01fc9dbcbe1f06391848c2ac915212f  # tags/json-c-0.15-20200726^0
 source=("git+https://github.com/json-c/json-c#commit=$_commit";)
 sha256sums=('SKIP')
 
@@ -28,6 +28,9 @@
 }
 
 build() {
+  CFLAGS+=" $CPPFLAGS"
+  CXXFLAGS+=" $CPPFLAGS"
+
   cmake -Hjson-c -Bbuild \
 -DCMAKE_BUILD_TYPE=None \
 -DCMAKE_INSTALL_PREFIX=/usr \


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2020-05-05 Thread Jan Steffens via arch-commits
Date: Tuesday, May 5, 2020 @ 11:15:05
  Author: heftig
Revision: 382292

0.14-4: disable RDRAND due to various issues (#589, #590)

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |9 ++---
 1 file changed, 2 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-05 11:10:14 UTC (rev 382291)
+++ PKGBUILD2020-05-05 11:15:05 UTC (rev 382292)
@@ -4,7 +4,7 @@
 
 pkgname=json-c
 pkgver=0.14
-pkgrel=3
+pkgrel=4
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
@@ -25,11 +25,6 @@
 
 prepare() {
   cd json-c
-
-  # Detect broken RDRAND during initialization
-  git cherry-pick -n \
-4d36b0287d3ab0912ba8a4790340ca099960b2b0 \
-80863140263be5f2dc630938ed8f0066f8a1ab43
 }
 
 build() {
@@ -38,7 +33,7 @@
 -DCMAKE_INSTALL_PREFIX=/usr \
 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
 -DENABLE_THREADING=ON \
--DENABLE_RDRAND=ON
+-DENABLE_RDRAND=OFF
   cmake --build build
 }
 


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2020-05-05 Thread Christian Hesse via arch-commits
Date: Tuesday, May 5, 2020 @ 11:10:11
  Author: eworm
Revision: 382290

upgpkg: json-c 0.14-3

pull in follow-up

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-05 11:03:13 UTC (rev 382289)
+++ PKGBUILD2020-05-05 11:10:11 UTC (rev 382290)
@@ -4,7 +4,7 @@
 
 pkgname=json-c
 pkgver=0.14
-pkgrel=2
+pkgrel=3
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
@@ -27,7 +27,9 @@
   cd json-c
 
   # Detect broken RDRAND during initialization
-  git cherry-pick -n 4d36b0287d3ab0912ba8a4790340ca099960b2b0
+  git cherry-pick -n \
+4d36b0287d3ab0912ba8a4790340ca099960b2b0 \
+80863140263be5f2dc630938ed8f0066f8a1ab43
 }
 
 build() {


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2020-05-05 Thread Christian Hesse via arch-commits
Date: Tuesday, May 5, 2020 @ 09:23:50
  Author: eworm
Revision: 382272

upgpkg: json-c 0.14-2

cherry-pick "Detect broken RDRAND during initialization"

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-05 06:04:44 UTC (rev 382271)
+++ PKGBUILD2020-05-05 09:23:50 UTC (rev 382272)
@@ -4,7 +4,7 @@
 
 pkgname=json-c
 pkgver=0.14
-pkgrel=1
+pkgrel=2
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
@@ -25,6 +25,9 @@
 
 prepare() {
   cd json-c
+
+  # Detect broken RDRAND during initialization
+  git cherry-pick -n 4d36b0287d3ab0912ba8a4790340ca099960b2b0
 }
 
 build() {


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2020-04-20 Thread Jan Steffens via arch-commits
Date: Monday, April 20, 2020 @ 18:52:04
  Author: heftig
Revision: 380641

0.14-1

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   31 +++
 1 file changed, 15 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-20 18:48:18 UTC (rev 380640)
+++ PKGBUILD2020-04-20 18:52:04 UTC (rev 380641)
@@ -3,15 +3,16 @@
 # Contributor: congyiwu 
 
 pkgname=json-c
-pkgver=0.13.1
-pkgrel=3
+pkgver=0.14
+pkgrel=1
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
 arch=(x86_64)
 depends=(glibc)
-makedepends=(git)
-_commit=985c46fec39d1d3043f98e8d8cdb9d040131b3bb  # 
tags/json-c-0.13.1-20180305^0
+makedepends=(git cmake)
+provides=(libjson-c.so)
+_commit=bae2f10c436eaf0d95746cbc5f1c1f0ecb866a8e  # tags/json-c-0.14-20200419^0
 source=("git+https://github.com/json-c/json-c#commit=$_commit";)
 sha256sums=('SKIP')
 
@@ -24,27 +25,25 @@
 
 prepare() {
   cd json-c
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd json-c
-  ./configure \
---prefix=/usr \
---disable-static \
---enable-threading
-  make
+  cmake -Hjson-c -Bbuild \
+-DCMAKE_BUILD_TYPE=None \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_INSTALL_LIBDIR=/usr/lib \
+-DENABLE_THREADING=ON \
+-DENABLE_RDRAND=ON
+  cmake --build build
 }
 
 check() {
-  cd json-c
-  make check
+  cmake --build build --target test
 }
 
 package() {
-  cd json-c
-  make DESTDIR="$pkgdir" install
-  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
+  DESTDIR="$pkgdir" cmake --build build --target install
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
 }
 
 # vim:set sw=2 et:


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2019-11-13 Thread Felix Yan via arch-commits
Date: Wednesday, November 13, 2019 @ 16:00:37
  Author: felixonmars
Revision: 368142

[core] mass rebuild

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-13 16:00:35 UTC (rev 368141)
+++ PKGBUILD2019-11-13 16:00:37 UTC (rev 368142)
@@ -4,7 +4,7 @@
 
 pkgname=json-c
 pkgver=0.13.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2018-08-30 Thread Jan Steffens via arch-commits
Date: Thursday, August 30, 2018 @ 19:22:43
  Author: heftig
Revision: 333131

0.13.1-2

Modified:
  json-c/trunk/PKGBUILD (contents, properties)

--+
 PKGBUILD |   45 +++--
 1 file changed, 31 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-08-30 17:10:53 UTC (rev 333130)
+++ PKGBUILD2018-08-30 19:22:43 UTC (rev 333131)
@@ -1,4 +1,3 @@
-# $Id$
 # Maintainer: Jan Alexander Steffens (heftig) 
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
@@ -5,29 +4,47 @@
 
 pkgname=json-c
 pkgver=0.13.1
-pkgrel=1
-pkgdesc='A JSON implementation in C'
-url='https://github.com/json-c/json-c/wiki'
+pkgrel=2
+pkgdesc="A JSON implementation in C"
+url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
-arch=('x86_64')
-depends=('glibc')
-_releasedate=20180305
-source=("https://github.com/json-c/json-c/archive/json-c-${pkgver}-${_releasedate}.tar.gz";)
-sha256sums=('5d867baeb7f540abe8f3265ac18ed7a24f91fe3c5f4fd99ac3caba0708511b90')
+arch=(x86_64)
+depends=(glibc)
+makedepends=(git)
+_commit=985c46fec39d1d3043f98e8d8cdb9d040131b3bb  # 
tags/json-c-0.13.1-20180305^0
+source=("git+https://github.com/json-c/json-c#commit=$_commit";)
+sha256sums=('SKIP')
 
+pkgver() {
+  cd json-c
+  local tag="$(git describe --tags --abbrev=0)"
+  local ver="$(git describe --tags)"
+  echo "${tag%-*}${ver#$tag}" | sed 's/^json-c-//;s/-/+/g'
+}
+
+prepare() {
+  cd json-c
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgname-$pkgver-$_releasedate
-  ./configure --prefix=/usr --disable-static
+  cd json-c
+  ./configure \
+--prefix=/usr \
+--disable-static \
+--enable-threading
   make
 }
 
 check() {
-  cd $pkgname-$pkgname-$pkgver-$_releasedate
+  cd json-c
   make check
 }
 
 package() {
-  cd $pkgname-$pkgname-$pkgver-$_releasedate
+  cd json-c
   make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
 }
+
+# vim:set sw=2 et:


Property changes on: json-c/trunk/PKGBUILD
___
Deleted: svn:keywords
## -1 +0,0 ##
-Id
\ No newline at end of property


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2018-03-23 Thread Jelle van der Waa via arch-commits
Date: Friday, March 23, 2018 @ 18:11:19
  Author: jelle
Revision: 319866

Prepare new release

Update json-c to 0.13.1, introduce a variable for the releasedate.

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-03-23 17:26:56 UTC (rev 319865)
+++ PKGBUILD2018-03-23 18:11:19 UTC (rev 319866)
@@ -4,7 +4,7 @@
 # Contributor: congyiwu 
 
 pkgname=json-c
-pkgver=0.13
+pkgver=0.13.1
 pkgrel=1
 pkgdesc='A JSON implementation in C'
 url='https://github.com/json-c/json-c/wiki'
@@ -11,23 +11,23 @@
 license=(MIT)
 arch=('x86_64')
 depends=('glibc')
-source=('https://github.com/json-c/json-c/archive/json-c-0.13-20171207.tar.gz')
-sha256sums=('26e642456caab38aa9459279b9712ffec52f751e9f46641d28461c244bd6bae6')
+_releasedate=20180305
+source=("https://github.com/json-c/json-c/archive/json-c-${pkgver}-${_releasedate}.tar.gz";)
+sha256sums=('5d867baeb7f540abe8f3265ac18ed7a24f91fe3c5f4fd99ac3caba0708511b90')
 
 build() {
-  cd $pkgname-$pkgname-$pkgver-20171207
-  CFLAGS="$CFLAGS -Wno-error"
+  cd $pkgname-$pkgname-$pkgver-$_releasedate
   ./configure --prefix=/usr --disable-static
   make
 }
 
 check() {
-  cd $pkgname-$pkgname-$pkgver-20171207
+  cd $pkgname-$pkgname-$pkgver-$_releasedate
   make check
 }
 
 package() {
-  cd $pkgname-$pkgname-$pkgver-20171207
+  cd $pkgname-$pkgname-$pkgver-$_releasedate
   make DESTDIR="$pkgdir" install
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2017-12-24 Thread Jelle van der Waa via arch-commits
Date: Sunday, December 24, 2017 @ 21:09:45
  Author: jelle
Revision: 313592

upgpkg: json-c 0.13-1

update to 0.13

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-24 16:46:08 UTC (rev 313591)
+++ PKGBUILD2017-12-24 21:09:45 UTC (rev 313592)
@@ -4,7 +4,7 @@
 # Contributor: congyiwu 
 
 pkgname=json-c
-pkgver=0.12.1
+pkgver=0.13
 pkgrel=1
 pkgdesc='A JSON implementation in C'
 url='https://github.com/json-c/json-c/wiki'
@@ -11,11 +11,11 @@
 license=(MIT)
 arch=('x86_64')
 depends=('glibc')
-source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
-sha256sums=('2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123')
+source=('https://github.com/json-c/json-c/archive/json-c-0.13-20171207.tar.gz')
+sha256sums=('26e642456caab38aa9459279b9712ffec52f751e9f46641d28461c244bd6bae6')
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname-$pkgname-$pkgver-20171207
   CFLAGS="$CFLAGS -Wno-error"
   ./configure --prefix=/usr --disable-static
   make
@@ -22,12 +22,12 @@
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname-$pkgname-$pkgver-20171207
   make check
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname-$pkgname-$pkgver-20171207
   make DESTDIR="$pkgdir" install
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2016-06-21 Thread Bartłomiej Piotrowski
Date: Tuesday, June 21, 2016 @ 18:36:32
  Author: bpiotrowski
Revision: 270430

upgpkg: json-c 0.12.1-1

new upstream release

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-06-21 18:24:18 UTC (rev 270429)
+++ PKGBUILD2016-06-21 18:36:32 UTC (rev 270430)
@@ -4,15 +4,15 @@
 # Contributor: congyiwu 
 
 pkgname=json-c
-pkgver=0.12
-pkgrel=2
-pkgdesc="A JSON implementation in C"
-url="https://github.com/json-c/json-c/wiki";
+pkgver=0.12.1
+pkgrel=1
+pkgdesc='A JSON implementation in C'
+url='https://github.com/json-c/json-c/wiki'
 license=(MIT)
-arch=(i686 x86_64)
-depends=(glibc)
+arch=('i686' 'x86_64')
+depends=('glibc')
 
source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
-sha256sums=('000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f')
+sha256sums=('2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123')
 
 build() {
   cd $pkgname-$pkgver


[arch-commits] Commit in json-c/trunk (PKGBUILD)

2014-05-24 Thread Anatol Pomozov
Date: Sunday, May 25, 2014 @ 06:37:27
  Author: anatolik
Revision: 213567

upgpkg: json-c 0.12-2

Rebuild with valid PACKAGER information

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-25 02:14:54 UTC (rev 213566)
+++ PKGBUILD2014-05-25 04:37:27 UTC (rev 213567)
@@ -5,7 +5,7 @@
 
 pkgname=json-c
 pkgver=0.12
-pkgrel=1
+pkgrel=2
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)



[arch-commits] Commit in json-c/trunk (PKGBUILD)

2014-05-23 Thread Anatol Pomozov
Date: Saturday, May 24, 2014 @ 08:08:13
  Author: anatolik
Revision: 213535

upgpkg: json-c 0.12-1

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-24 02:19:06 UTC (rev 213534)
+++ PKGBUILD2014-05-24 06:08:13 UTC (rev 213535)
@@ -2,8 +2,9 @@
 # Maintainer: Jan Alexander Steffens (heftig) 
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
+
 pkgname=json-c
-pkgver=0.11
+pkgver=0.12
 pkgrel=1
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
@@ -10,16 +11,21 @@
 license=(MIT)
 arch=(i686 x86_64)
 depends=(glibc)
-options=(!makeflags)
 
source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
-sha256sums=('28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c')
+sha256sums=('000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f')
 
 build() {
   cd $pkgname-$pkgver
+  CFLAGS="$CFLAGS -Wno-error"
   ./configure --prefix=/usr --disable-static
   make
 }
 
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install



[arch-commits] Commit in json-c/trunk (PKGBUILD)

2013-06-07 Thread Jan Steffens
Date: Friday, June 7, 2013 @ 19:02:24
  Author: heftig
Revision: 187874

0.11

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   27 ++-
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-06-07 13:39:39 UTC (rev 187873)
+++ PKGBUILD2013-06-07 17:02:24 UTC (rev 187874)
@@ -3,26 +3,19 @@
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
 pkgname=json-c
-pkgver=0.10
-pkgrel=2
+pkgver=0.11
+pkgrel=1
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
-license=("MIT")
-arch=('i686' 'x86_64')
-depends=('glibc')
-source=(https://github.com/downloads/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('a4edc79410eb894f08d7d52ca9f88732')
-options=(!libtool)
+license=(MIT)
+arch=(i686 x86_64)
+depends=(glibc)
+options=(!libtool !makeflags)
+source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
+sha256sums=('28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c')
+
 build() {
   cd $pkgname-$pkgver
-
-  ## from http://pkgs.fedoraproject.org/cgit/json-c.git/tree/json-c.spec
-  # Hack to get json_object_iterator.c compiled
-  sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
-  -e 's/json_object.h/json_object.h json_object_iterator.h/' \
-  -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \
-  -i Makefile.in
-
   ./configure --prefix=/usr --disable-static
   make
 }
@@ -30,5 +23,5 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }



[arch-commits] Commit in json-c/trunk (PKGBUILD)

2013-01-27 Thread Jan Steffens
Date: Monday, January 28, 2013 @ 01:10:28
  Author: heftig
Revision: 176238

Fix package so we can actually build things against it

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   14 +++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-01-27 23:33:03 UTC (rev 176237)
+++ PKGBUILD2013-01-28 00:10:28 UTC (rev 176238)
@@ -1,10 +1,10 @@
 # $Id$
-# Maintainer: Jan "heftig" Steffens 
+# Maintainer: Jan Alexander Steffens (heftig) 
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
 pkgname=json-c
 pkgver=0.10
-pkgrel=1
+pkgrel=2
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=("MIT")
@@ -15,7 +15,15 @@
 options=(!libtool)
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr
+
+  ## from http://pkgs.fedoraproject.org/cgit/json-c.git/tree/json-c.spec
+  # Hack to get json_object_iterator.c compiled
+  sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \
+  -e 's/json_object.h/json_object.h json_object_iterator.h/' \
+  -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \
+  -i Makefile.in
+
+  ./configure --prefix=/usr --disable-static
   make
 }
 



[arch-commits] Commit in json-c/trunk (PKGBUILD)

2013-01-25 Thread Ionuț Mircea Bîru
Date: Friday, January 25, 2013 @ 15:54:07
  Author: ioni
Revision: 175979

update to 0.10

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-01-25 14:51:01 UTC (rev 175978)
+++ PKGBUILD2013-01-25 14:54:07 UTC (rev 175979)
@@ -3,24 +3,24 @@
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu 
 pkgname=json-c
-pkgver=0.9
+pkgver=0.10
 pkgrel=1
 pkgdesc="A JSON implementation in C"
-url="http://oss.metaparadigm.com/json-c/";
+url="https://github.com/json-c/json-c/wiki";
 license=("MIT")
 arch=('i686' 'x86_64')
 depends=('glibc')
-source=(http://oss.metaparadigm.com/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('3a13d264528dcbaf3931b0cede24abae')
+source=(https://github.com/downloads/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('a4edc79410eb894f08d7d52ca9f88732')
 options=(!libtool)
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
   install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }



[arch-commits] Commit in json-c/trunk (PKGBUILD)

2011-08-31 Thread Jan Steffens
Date: Wednesday, August 31, 2011 @ 18:15:37
  Author: heftig
Revision: 136742

Add Id

Modified:
  json-c/trunk/PKGBUILD

--+
 PKGBUILD |1 +
 1 file changed, 1 insertion(+)

Modified: PKGBUILD
===
--- PKGBUILD2011-08-31 22:12:08 UTC (rev 136741)
+++ PKGBUILD2011-08-31 22:15:37 UTC (rev 136742)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Jan "heftig" Steffens 
 # Contributor: Geoffroy Carrier 
 # Contributor: congyiwu