development/lwtools: Updated for version 4.15.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Golus 2018-09-26 17:06:54 +01:00 committed by Willy Sudiarto Raharjo
parent cfa732b2f2
commit 3cc7eac0e3
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 8 additions and 14 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for lwtools
# Copyright 2015 David Golus <bassplayer69@gmail.com>
# Copyright 2016-2018 David Golus <bassplayer69@gmail.com>
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@ -21,17 +21,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Heavily based on original slackbuild by AlienBOB.
# Modified by David Golus <bassplayer69@gmail.com>
PRGNAM=lwtools
VERSION=${VERSION:-4.12}
VERSION=${VERSION:-4.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -42,15 +39,14 @@ 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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@ -72,7 +68,6 @@ 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 {} \;
LDFLAGS="-lm" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
@ -84,7 +79,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a 00README.txt COPYING GPL3 $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,8 +1,8 @@
PRGNAM="lwtools"
VERSION="4.12"
VERSION="4.15"
HOMEPAGE="http://lwtools.projects.l-w.ca"
DOWNLOAD="http://lwtools.projects.l-w.ca/releases/lwtools/lwtools-4.12.tar.gz"
MD5SUM="0261d02a84cc4e0e3f69e124cddb05c4"
DOWNLOAD="http://lwtools.projects.l-w.ca/releases/lwtools/lwtools-4.15.tar.gz"
MD5SUM="2f13dd2e3908ca1fe20798bd708d8ec3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""