aboutsummaryrefslogtreecommitdiff
path: root/development/blassic/blassic.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-01-06 12:19:42 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-10 23:55:54 +0700
commit1813538d9ef6dec531327313d784cac86bc61d0e (patch)
tree02b9246ee07361a3d4c786ee043a7d8399676c7c /development/blassic/blassic.SlackBuild
parenta65094d1c012322d3ec0b3be67a0c19597ab470a (diff)
development/blassic: Updated for version 0.10.3, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/blassic/blassic.SlackBuild')
-rw-r--r--development/blassic/blassic.SlackBuild32
1 files changed, 20 insertions, 12 deletions
diff --git a/development/blassic/blassic.SlackBuild b/development/blassic/blassic.SlackBuild
index 76b110ff07934..496a12596c624 100644
--- a/development/blassic/blassic.SlackBuild
+++ b/development/blassic/blassic.SlackBuild
@@ -2,16 +2,28 @@
# Slackware build script for blassic
-# Written by Luis Henrique <lmello.009@gmail.com>
+# Originally written by Luis Henrique <email removed>
+
+# Now maintained by B. Watson <yalhcru@gmail.com>
+
+# Original version of this script had no license. Modified version
+# licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/
+# for details.
+
+# 20180105 bkw:
+# - take over maintenance
+# - update for 0.10.3
+# - don't install INSTALL or 0-byte ChangeLog in doc dir
+# - i486 => i586
PRGNAM=blassic
-VERSION=${VERSION:-0.10.2}
+VERSION=${VERSION:-0.10.3}
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
@@ -22,8 +34,8 @@ 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"
@@ -62,15 +74,11 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install 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
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+# ChangeLog is 0 bytes in 0.10.3, don't bother
+cp -a AUTHORS COPYING NEWS README THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install