aboutsummaryrefslogtreecommitdiff
path: root/libraries/json-glib
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 23:30:22 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:30:22 +0200
commit91e9b6db1b9b6fd0fce1bb27b9b69ea1612a3036 (patch)
tree61e919ab62e961382bc5c16b6f125612a15c18d8 /libraries/json-glib
parent4ded9f1228435d8d0d26de1f82344d77eefd4a55 (diff)
libraries/json-glib: Added to 12.2 repository
Diffstat (limited to 'libraries/json-glib')
-rw-r--r--libraries/json-glib/README3
-rw-r--r--libraries/json-glib/json-glib.SlackBuild64
-rw-r--r--libraries/json-glib/json-glib.info8
-rw-r--r--libraries/json-glib/slack-desc19
4 files changed, 94 insertions, 0 deletions
diff --git a/libraries/json-glib/README b/libraries/json-glib/README
new file mode 100644
index 000000000000..84d3d2669bb0
--- /dev/null
+++ b/libraries/json-glib/README
@@ -0,0 +1,3 @@
+JSON-GLib is a library providing serialization and deserialization
+support for the JavaScript Object Notation (JSON) format described
+by RFC 4627.
diff --git a/libraries/json-glib/json-glib.SlackBuild b/libraries/json-glib/json-glib.SlackBuild
new file mode 100644
index 000000000000..070b671009eb
--- /dev/null
+++ b/libraries/json-glib/json-glib.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh -eu
+
+# Slackware build script for JSON-Glib
+# Written by Erik Hanson erik@slackbuilds.org
+
+PRGNAM=json-glib
+VERSION=0.6.2
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --mandir=/usr/man \
+ --disable-static \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+( cd $PKG/usr/doc/$PRGNAM-$VERSION
+ ln -s /usr/share/gtk-doc/html/json-glib html
+)
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/json-glib/json-glib.info b/libraries/json-glib/json-glib.info
new file mode 100644
index 000000000000..5c050899aeaa
--- /dev/null
+++ b/libraries/json-glib/json-glib.info
@@ -0,0 +1,8 @@
+PRGNAM="json-glib"
+VERSION="0.6.2"
+HOMEPAGE="http://live.gnome.org/JsonGlib"
+DOWNLOAD="http://folks.o-hand.com/~ebassi/sources/json-glib-0.6.2.tar.gz"
+MD5SUM="d98f5580035ad0b37fa11896053a57af"
+MAINTAINER="Erik Hanson"
+EMAIL="erik@slackbuilds.org"
+APPROVED="rworkman"
diff --git a/libraries/json-glib/slack-desc b/libraries/json-glib/slack-desc
new file mode 100644
index 000000000000..b2125d10fc3d
--- /dev/null
+++ b/libraries/json-glib/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler----------------------------------------------------|
+json-glib: JSON-Glib (a de/serialization library for the JS Object Notation)
+json-glib:
+json-glib: JSON-GLib is a library providing serialization and deserialization
+json-glib: support for the JavaScript Object Notation (JSON) format described
+json-glib: by RFC 4627.
+json-glib:
+json-glib: http://live.gnome.org/JsonGlib
+json-glib:
+json-glib:
+json-glib:
+json-glib: