aboutsummaryrefslogtreecommitdiff
path: root/libraries/libbsd/libbsd.SlackBuild
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2012-11-19 14:17:41 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-11-19 16:52:07 -0600
commit1800d22de5a00d56bd8b090d87fd7b4f301783c0 (patch)
tree78318ce415fb2aa55849ddb5b226e5d51873968b /libraries/libbsd/libbsd.SlackBuild
parent1bb42252650427652d1c495a9a44271cfc8b92bc (diff)
libraries/libbsd: Updated for version 0.4.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libbsd/libbsd.SlackBuild')
-rw-r--r--libraries/libbsd/libbsd.SlackBuild28
1 files changed, 13 insertions, 15 deletions
diff --git a/libraries/libbsd/libbsd.SlackBuild b/libraries/libbsd/libbsd.SlackBuild
index 4c4ae7d90cbd4..951f76441293d 100644
--- a/libraries/libbsd/libbsd.SlackBuild
+++ b/libraries/libbsd/libbsd.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh -e
+#!/bin/sh
-# Copyright (c) 2010, 2011 Daniel LEVAI
+# Copyright (c) 2010, 2011, 2012 Daniel LEVAI
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
# Build script for libbsd
PRGNAM=libbsd
-VERSION=0.3.0
+VERSION=${VERSION:-0.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,10 +61,10 @@ fi
set -e
-rm -Rf $PKG
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -Rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -75,21 +75,19 @@ find . \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-make
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --disable-static \
+ --build=$ARCH-slackware-linux
-make \
- mandir=/usr/man \
- usrlibdir=/usr/lib${LIBDIRSUFFIX} \
- libdir=/usr/lib${LIBDIRSUFFIX} \
- DESTDIR=$PKG \
- install
+make install DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
-cp -a ChangeLog README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -a ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -type f -exec chmod 0644 {} \;