diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 14:56:17 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 14:56:17 +0200 |
commit | 106eeef0650168bcffad65ae30f16fa125431d5a (patch) | |
tree | 9f2f44cdd450ff5c1891c8fdac3c47ae58ca0a6d /libraries/libconfuse | |
parent | e76ba428a2cf2abb8b3c03c522146beeb536b1c1 (diff) | |
download | slackbuilds-106eeef0650168bcffad65ae30f16fa125431d5a.tar.gz |
libraries/libconfuse: Initial import
Diffstat (limited to 'libraries/libconfuse')
-rw-r--r-- | libraries/libconfuse/README | 12 | ||||
-rw-r--r-- | libraries/libconfuse/libconfuse.SlackBuild | 61 | ||||
-rw-r--r-- | libraries/libconfuse/libconfuse.info | 8 | ||||
-rw-r--r-- | libraries/libconfuse/slack-desc | 11 |
4 files changed, 92 insertions, 0 deletions
diff --git a/libraries/libconfuse/README b/libraries/libconfuse/README new file mode 100644 index 0000000000..69d53d11df --- /dev/null +++ b/libraries/libconfuse/README @@ -0,0 +1,12 @@ +libConfuse is a configuration file parser library, licensed under the terms of +the LGPL, and written in C. It supports sections and (lists of) values +(strings, integers, floats, booleans or other sections), as well as some other +features (such as single/double-quoted strings, environment variable expansion, +functions and nested include statements). It makes it very easy to add +configuration file capability to a program using a simple API. + +The goal of libConfuse is not to be the configuration file parser library with +a gazillion of features. Instead, it aims to be easy to use and quick to +integrate with your code. libConfuse was called libcfg before, but was changed +to not confuse with other similar libraries. + diff --git a/libraries/libconfuse/libconfuse.SlackBuild b/libraries/libconfuse/libconfuse.SlackBuild new file mode 100644 index 0000000000..74a748afb1 --- /dev/null +++ b/libraries/libconfuse/libconfuse.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for libConfuse +# Written by Erik Hanson erik@slackbuilds.org +# Modified by the SlackBuilds.org project + +PRGNAM=libconfuse +SRCNAM=confuse +VERSION=2.5 +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" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1 +cd $SRCNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-shared=yes \ + --enable-static=no \ + || exit 1 + +make || exit 1 +make install-strip DESTDIR=$PKG || exit 1 + +find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/man/man3 +cp -a doc/man/man3/* $PKG/usr/man/man3/ +gzip -9 $PKG/usr/man/man3/* + +rmdir $PKG/usr/bin + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ABOUT-NLS AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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/libconfuse/libconfuse.info b/libraries/libconfuse/libconfuse.info new file mode 100644 index 0000000000..65008537d7 --- /dev/null +++ b/libraries/libconfuse/libconfuse.info @@ -0,0 +1,8 @@ +PRGNAM="libconfuse" +VERSION="2.5" +HOMEPAGE="http://www.nongnu.org/confuse/" +DOWNLOAD="http://download.savannah.gnu.org/releases/confuse/confuse-2.5.tar.gz" +MD5SUM="4bc9b73d77ebd571ac834619ce0b3582" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="elohim,robw810" diff --git a/libraries/libconfuse/slack-desc b/libraries/libconfuse/slack-desc new file mode 100644 index 0000000000..f2efecf952 --- /dev/null +++ b/libraries/libconfuse/slack-desc @@ -0,0 +1,11 @@ +libconfuse: libConfuse - a configuration file parser library +libconfuse: +libconfuse: libConfuse is a configuration file parser library, It supports +libconfuse: sections and (lists of) values (strings, integers, floats, +libconfuse: booleans or other sections), as well as some other features +libconfuse: (such as single/double-quoted strings, environment variable +libconfuse: expansion, functions and nested include statements). +libconfuse: +libconfuse: http://www.nongnu.org/confuse/ +libconfuse: +libconfuse: |