diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-12-07 14:13:42 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-12-07 14:13:42 +0000 |
commit | 57818935b7a5a1bec426721e935238ff89b54684 (patch) | |
tree | 57667965c9397323ae54f34bcd3a78df03978f70 /testing | |
parent | f5e27843a918b41fbc98b72fa86663eb0a3837a2 (diff) | |
download | aports-57818935b7a5a1bec426721e935238ff89b54684.tar.bz2 aports-57818935b7a5a1bec426721e935238ff89b54684.tar.xz |
testing/jshon: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/jshon/APKBUILD | 37 | ||||
-rw-r--r-- | testing/jshon/disable-werror.patch | 10 | ||||
-rw-r--r-- | testing/jshon/missing-typesh.patch | 10 |
3 files changed, 57 insertions, 0 deletions
diff --git a/testing/jshon/APKBUILD b/testing/jshon/APKBUILD new file mode 100644 index 0000000000..95e3ae8c59 --- /dev/null +++ b/testing/jshon/APKBUILD @@ -0,0 +1,37 @@ +# 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" diff --git a/testing/jshon/disable-werror.patch b/testing/jshon/disable-werror.patch new file mode 100644 index 0000000000..fff4dc474e --- /dev/null +++ b/testing/jshon/disable-werror.patch @@ -0,0 +1,10 @@ +--- ./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?=/ diff --git a/testing/jshon/missing-typesh.patch b/testing/jshon/missing-typesh.patch new file mode 100644 index 0000000000..d94c2a0ac0 --- /dev/null +++ b/testing/jshon/missing-typesh.patch @@ -0,0 +1,10 @@ +--- ./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> |