mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
libraries/json-glib: Added to 12.2 repository
This commit is contained in:
parent
4ded9f1228
commit
91e9b6db1b
4 changed files with 94 additions and 0 deletions
3
libraries/json-glib/README
Normal file
3
libraries/json-glib/README
Normal file
|
@ -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.
|
64
libraries/json-glib/json-glib.SlackBuild
Normal file
64
libraries/json-glib/json-glib.SlackBuild
Normal file
|
@ -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
|
8
libraries/json-glib/json-glib.info
Normal file
8
libraries/json-glib/json-glib.info
Normal file
|
@ -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"
|
19
libraries/json-glib/slack-desc
Normal file
19
libraries/json-glib/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue