summaryrefslogtreecommitdiffstats
path: root/system/execline/execline.SlackBuild
diff options
context:
space:
mode:
author Muhammad Mahendra Subrata <mumahendras3@gmail.com>2020-01-12 21:37:18 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 21:37:18 +0700
commit6b5f8d533295693f34718f873eae24fca5387331 (patch)
treed2f8f213d2b53dbd7156b301b58f5cc82cdd759f /system/execline/execline.SlackBuild
parent6ac4330fd7c25d3487e9bd55a9655253e3dceb4b (diff)
downloadslackbuilds-6b5f8d533295693f34718f873eae24fca5387331.tar.gz
slackbuilds-6b5f8d533295693f34718f873eae24fca5387331.tar.xz
system/execline: Updated for version 2.5.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/execline/execline.SlackBuild')
-rw-r--r--system/execline/execline.SlackBuild42
1 files changed, 34 insertions, 8 deletions
diff --git a/system/execline/execline.SlackBuild b/system/execline/execline.SlackBuild
index d072a3d95d..9cb78443e7 100644
--- a/system/execline/execline.SlackBuild
+++ b/system/execline/execline.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for execline
# Copyright 2019 Sean MacLennan Ottawa, Canada
+# Copyright 2020 Muhammad Mahendra Subrata Depok, Indonesia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=execline
-VERSION=${VERSION:-2.5.0.1}
+VERSION=${VERSION:-2.5.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +55,29 @@ else
LIBDIRSUFFIX=""
fi
+# By default, only static libraries are built. If you need to build the shared libraries, just pass
+# BUILD_SHARED=yes to this script
+BUILD_STATIC=${BUILD_STATIC:-yes}
+BUILD_SHARED=${BUILD_SHARED:-no}
+
+if [ "$BUILD_STATIC" = "no" ]; then
+ LIBS_CONF="--disable-static"
+fi
+
+if [ "$BUILD_SHARED" = "yes" ]; then
+ LIBS_CONF="--enable-shared $LIBS_CONF"
+fi
+
+# By default, all binaries are linked against the static versions of the skarnet.org libraries
+# Pass LINK_SHARED=yes to link the binaries against the shared versions of the skarnet.org libraries
+# Also, if you only built the shared versions of the skarnet.org libraries, the binaries will be
+# linked against shared libraries automatically, as though LINK_SHARED=yes is passed to this script
+LINK_SHARED=${LINK_SHARED:-no}
+
+if [ "$LINK_SHARED" = "yes" ]; then
+ LIBS_CONF="--disable-allstatic $LIBS_CONF"
+fi
+
set -e
rm -rf $PKG
@@ -72,17 +96,19 @@ find -L . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --bindir=/command \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --dynlibdir=/usr/lib${LIBDIRSUFFIX} \
- --build=$ARCH-slackware-linux
+ --dynlibdir=/lib${LIBDIRSUFFIX} \
+ --bindir=/bin \
+ --libexecdir=/usr/libexec \
+ --libdir=/usr/lib${LIBDIRSUFFIX}/execline \
+ --includedir=/usr/include \
+ --with-sysdeps=/usr/lib${LIBDIRSUFFIX}/skalibs/sysdeps \
+ --with-lib=/usr/lib${LIBDIRSUFFIX}/skalibs \
+ $LIBS_CONF
make
+make strip
make install DESTDIR=$PKG
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING INSTALL NEWS README doc examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild