summaryrefslogtreecommitdiffstats
path: root/libraries/libfsapfs/libfsapfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libfsapfs/libfsapfs.SlackBuild')
-rw-r--r--libraries/libfsapfs/libfsapfs.SlackBuild34
1 files changed, 23 insertions, 11 deletions
diff --git a/libraries/libfsapfs/libfsapfs.SlackBuild b/libraries/libfsapfs/libfsapfs.SlackBuild
index af5246b954..ae0335790b 100644
--- a/libraries/libfsapfs/libfsapfs.SlackBuild
+++ b/libraries/libfsapfs/libfsapfs.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libfsapfs
-# Copyright 2019 Barry J. Grundy (bgrundy<at>linuxleo.com)
+# Copyright 2019-2023 Barry J. Grundy (bgrundy<at>linuxleo.com)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,30 +21,40 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, 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.
+#
+# Updated to v20221102 July 2023
-# New Submission v20181215 Jan 2019
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libfsapfs
-VERSION=${VERSION:-20181215}
+VERSION=${VERSION:-20221102}
STATUS=${STATUS:-experimental}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -81,7 +91,7 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
- --enable-python \
+ --enable-python3 \
--build=$ARCH-slackware-linux
make
@@ -91,11 +101,13 @@ 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 -ar ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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