diff options
author | Rodney Cobb <rdc@ktabic.co.uk> | 2010-05-13 00:30:12 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:30:12 +0200 |
commit | c895a4be840f366b77908997887cbfb3ed005985 (patch) | |
tree | 8812df9a9535b933916d5810eb7d8c47f72e6c01 /libraries/libdaemon/libdaemon.SlackBuild | |
parent | 1cd7f421dce452f404d2154773e09adbd34b2143 (diff) |
libraries/libdaemon: Updated for version 0.13
Diffstat (limited to 'libraries/libdaemon/libdaemon.SlackBuild')
-rw-r--r-- | libraries/libdaemon/libdaemon.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libraries/libdaemon/libdaemon.SlackBuild b/libraries/libdaemon/libdaemon.SlackBuild index 881b03a5beb08..9079ca628b169 100644 --- a/libraries/libdaemon/libdaemon.SlackBuild +++ b/libraries/libdaemon/libdaemon.SlackBuild @@ -18,9 +18,6 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -# --------------------------------------------------------------------------- - -# Modified by the SlackBuilds.org Project PRGNAM=libdaemon VERSION=0.13 @@ -35,10 +32,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" -elif [ "$ARCH" = "x86" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # Exit on most errors @@ -56,6 +56,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ @@ -66,12 +67,10 @@ make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) - -( cd $PKG/usr/man - find . -type f -name "*.?" -exec gzip -9 {} \; + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -81,4 +80,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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |