diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 23:30:22 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:30:22 +0200 |
commit | 91e9b6db1b9b6fd0fce1bb27b9b69ea1612a3036 (patch) | |
tree | 61e919ab62e961382bc5c16b6f125612a15c18d8 /libraries/json-glib/json-glib.SlackBuild | |
parent | 4ded9f1228435d8d0d26de1f82344d77eefd4a55 (diff) | |
download | slackbuilds-91e9b6db1b9b6fd0fce1bb27b9b69ea1612a3036.tar.gz |
libraries/json-glib: Added to 12.2 repository
Diffstat (limited to 'libraries/json-glib/json-glib.SlackBuild')
-rw-r--r-- | libraries/json-glib/json-glib.SlackBuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libraries/json-glib/json-glib.SlackBuild b/libraries/json-glib/json-glib.SlackBuild new file mode 100644 index 0000000000..070b671009 --- /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 |