office/lout: Updated for version 3.43

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Zhu Qun-Ying 2024-02-10 11:27:17 -08:00 committed by Willy Sudiarto Raharjo
parent a23665a93b
commit 81777ae60d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 6 additions and 38 deletions

View file

@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lout
VERSION=${VERSION:-3.42.2}
VERSION=${VERSION:-3.43}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -51,20 +51,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
@ -74,12 +60,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# fixed man page content
sed -i "s/local\/lib/share/g" man/$PRGNAM.1
@ -102,26 +82,14 @@ export ZLIB=-lz
export ZLIBPATH=
make -e all
export PREFIX=$PKG/usr
export BINDIR=$PREFIX/bin
export LOUTLIBDIR=$PREFIX/share/$PRGNAM
export LOUTDOCDIR=$PREFIX/doc/$PRGNAM-$VERSION
export MANDIR=$PREFIX/man/man1/
mkdir -p $BINDIR
mkdir -p $LOUTDOCDIR
mkdir -p $MANDIR
mkdir -p $PREFIX/share
make -e allinstall
make -e allinstall 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
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/README
cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="lout"
VERSION="3.42.2"
VERSION="3.43"
HOMEPAGE="https://github.com/william8000/lout"
DOWNLOAD="https://github.com/william8000/lout/archive/3.42.2/lout-3.42.2.tar.gz"
MD5SUM="9e18c17825ea207e370359af428b5cd8"
DOWNLOAD="https://github.com/william8000/lout/archive/3.43/lout-3.43.tar.gz"
MD5SUM="b498578b60f52909df014533f5c11401"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""