mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/libconfuse: Initial import
This commit is contained in:
parent
e76ba428a2
commit
106eeef065
4 changed files with 92 additions and 0 deletions
12
libraries/libconfuse/README
Normal file
12
libraries/libconfuse/README
Normal file
|
@ -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.
|
||||
|
61
libraries/libconfuse/libconfuse.SlackBuild
Normal file
61
libraries/libconfuse/libconfuse.SlackBuild
Normal file
|
@ -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
|
8
libraries/libconfuse/libconfuse.info
Normal file
8
libraries/libconfuse/libconfuse.info
Normal file
|
@ -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"
|
11
libraries/libconfuse/slack-desc
Normal file
11
libraries/libconfuse/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue