summaryrefslogtreecommitdiffstats
path: root/libraries/nini
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/nini')
-rw-r--r--libraries/nini/README13
-rw-r--r--libraries/nini/nini.SlackBuild16
2 files changed, 20 insertions, 9 deletions
diff --git a/libraries/nini/README b/libraries/nini/README
index cdc50d60ce..d7592843c7 100644
--- a/libraries/nini/README
+++ b/libraries/nini/README
@@ -1,6 +1,7 @@
-Nini is an .NET configuration library which designed to help build highly
-configurable applications quickly. Nini provides a solution that attempts to
-eliminate the above problems. It provides a large feature set that gives you
-functionality that you will use in every phase of your project, from concept
-to mature product. This is accomplished through a simple, yet flexible, API
-that provides an abstraction over the underlying configuration sources.
+Nini is an .NET configuration library which designed to help build
+highly configurable applications quickly. Nini provides a solution
+that attempts to eliminate the above problems. It provides a large
+feature set that gives you functionality that you will use in every
+phase of your project, from concept to mature product. This is
+accomplished through a simple, yet flexible, API that provides an
+abstraction over the underlying configuration sources.
diff --git a/libraries/nini/nini.SlackBuild b/libraries/nini/nini.SlackBuild
index 9835e49867..d65c34d603 100644
--- a/libraries/nini/nini.SlackBuild
+++ b/libraries/nini/nini.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for nini
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=nini
SRCNAM=Nini
VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -90,4 +100,4 @@ 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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE