libraries/libfwnt: Updated for version 20210906.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Barry J. Grundy 2022-05-20 01:09:56 +01:00 committed by Willy Sudiarto Raharjo
parent b032cad558
commit d97865544a
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 11 deletions

View file

@ -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

View file

@ -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=""