Commit 57818935 authored by Carlo Landmeter's avatar Carlo Landmeter

testing/jshon: new aport

parent f5e27843
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=jshon
pkgver=20131105
pkgrel=0
pkgdesc="SON parser designed for maximum convenience within the shell"
url="http://kmkeen.com/jshon/"
arch="all"
license="MIT"
depends=""
makedepends="jansson-dev"
options="!check"
subpackages="$pkgname-doc"
source="jshon-$pkgver.tar.gz::https://github.com/keenerd/jshon/archive/$pkgver.tar.gz
disable-werror.patch
missing-typesh.patch
"
builddir="$srcdir/jshon-$pkgver"
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="0f27cc8d0157bda12e5180f99b4e894326e7240d8cd004dadcadfad09f926852e224e3cd2b03cc6d51f7e7efafea0e5ccb1a0b66ab0d8349326809bc7db8ffb4 jshon-20131105.tar.gz
0f862ebcf1028cf2ad46610483df6b46e1f380b7b30605e672b342132fb1e123133d9c9672181d13217de5aa58e92522daf0eaa3537eacf810c978fbced364dc disable-werror.patch
fc9a589cd39493c10e4616628040f19d758893545df59d2dc415d21eae12d8af12d5dd1fc160d0c95694086e5e86c8e9a463332dbab1fbd89babb606da139554 missing-typesh.patch"
--- ./Makefile
+++ ./Makefile
@@ -1,6 +1,6 @@
# jshon - command line JSON parsing
-CFLAGS := -std=c99 -Wall -pedantic -Wextra -Werror ${CFLAGS}
+CFLAGS := -std=c99 -Wall -pedantic -Wextra ${CFLAGS}
LDLIBS = -ljansson
INSTALL=install
DESTDIR?=/
--- ./jshon.c.orig
+++ ./jshon.c
@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include <unistd.h>
#include <jansson.h>
#include <errno.h>
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