diff options
Diffstat (limited to 'libraries/libfwnt/libfwnt.SlackBuild')
-rw-r--r-- | libraries/libfwnt/libfwnt.SlackBuild | 30 |
1 files changed, 22 insertions, 8 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 |