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 =================================================================== --- PKGBUILD 2018-03-23 17:26:56 UTC (rev 319865) +++ PKGBUILD 2018-03-23 18:11:19 UTC (rev 319866) @@ -4,7 +4,7 @@ # Contributor: congyiwu <congyiwu AT gmail DOT com> 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" }
