summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry J. Grundy <bgrundyat>2022-05-20 01:09:56 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-21 08:25:17 +0700
commitd97865544a53b58276e77e0c7410ebc305f2b65e (patch)
tree89a59da245f2151a47c8d63a421be6fece53c3e8
parentb032cad558a1343443d466c0764bce06fcedf359 (diff)
downloadslackbuilds-d97865544a53b58276e77e0c7410ebc305f2b65e.tar.gz
libraries/libfwnt: Updated for version 20210906.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libfwnt/libfwnt.SlackBuild30
-rw-r--r--libraries/libfwnt/libfwnt.info6
2 files changed, 25 insertions, 11 deletions
diff --git a/libraries/libfwnt/libfwnt.SlackBuild b/libraries/libfwnt/libfwnt.SlackBuild
index 7a1c4232c5..03f3b96492 100644
--- a/libraries/libfwnt/libfwnt.SlackBuild
+++ b/libraries/libfwnt/libfwnt.SlackBuild
@@ -1,7 +1,8 @@
#!/bin/bash
# Slackware build script for libfwnt
-# Copyright 2016-2019 Barry Grundy <bgrundy[at]linuxleo.com>
+
+# Copyright 2016-2022 Barry J. Grundy (bgrundy<at>linuxleo.com)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,12 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# Updated to version 20181227, March 2019
+# Updated to v20210906 May 2022
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libfwnt
-VERSION=${VERSION:-20181227}
+VERSION=${VERSION:-20210906}
STATUS=${STATUS:-alpha}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -81,17 +82,30 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-export CC="gcc $SLKCFLAGS $(pkg-config --cflags talloc)"
+CFLAGS="$SLKCFLAGS -std=gnu89" \
+CXXFLAGS="$SLKCFLAGS -std=gnu89" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --disable-static \
+ --enable-python3 \
+ --build=$ARCH-slackware-linux
-python setup.py install --root=$PKG
+make
+make install-strip DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+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 ABOUT-NLS AUTHORS ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar ABOUT-NLS AUTHORS ChangeLog COPYING 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
diff --git a/libraries/libfwnt/libfwnt.info b/libraries/libfwnt/libfwnt.info
index 27bd27c1fb..bef0c7c246 100644
--- a/libraries/libfwnt/libfwnt.info
+++ b/libraries/libfwnt/libfwnt.info
@@ -1,8 +1,8 @@
PRGNAM="libfwnt"
-VERSION="20181227"
+VERSION="20210906"
HOMEPAGE="https://github.com/libyal/libfwnt"
-DOWNLOAD="https://slackware.uk/~urchlay/src/libfwnt-alpha-20181227.tar.gz"
-MD5SUM="4af5a64b1603ef19c22c2a90162cf114"
+DOWNLOAD="https://linuxleo.com/Source/libfwnt-alpha-20210906.tar.gz"
+MD5SUM="982489bce71feb7c510832638c9e477a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""