aboutsummaryrefslogtreecommitdiff
path: root/graphics/fbpic
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-01-22 15:21:36 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-23 18:18:55 +0700
commitac69f0126249350786b5d7af655d6bc52119d961 (patch)
tree13a2faf07723504ad2e5b54055b6a6bfe63d259f /graphics/fbpic
parentb869a1fbc429449a79f63fe53431755ebc0b311d (diff)
graphics/fbpic: Fix build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fbpic')
-rw-r--r--graphics/fbpic/fbpic.SlackBuild25
-rw-r--r--graphics/fbpic/fbpic.info2
2 files changed, 14 insertions, 13 deletions
diff --git a/graphics/fbpic/fbpic.SlackBuild b/graphics/fbpic/fbpic.SlackBuild
index 1bc2e5358f64d..516c911975773 100644
--- a/graphics/fbpic/fbpic.SlackBuild
+++ b/graphics/fbpic/fbpic.SlackBuild
@@ -4,9 +4,13 @@
# Written by K.D.Hedger kdhedger@yahoo.co.uk
+# 20210122 bkw: modified by SlackBuilds.org: This has been broken
+# for years and nobody complained. Made it build, and use standard
+# SLKCFLAGS.
+
PRGNAM=fbpic
VERSION=${VERSION:-0.0.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -29,32 +33,29 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O3 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM.tgz
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 {} \;
+chmod 644 *
-CXXFLAGS="$SLKCFLAGS" \
-make
+make CXXFLAGS="$SLKCFLAGS"
make install PREFIX=/usr DESTDIR=$PKG
-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
+gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/graphics/fbpic/fbpic.info b/graphics/fbpic/fbpic.info
index 8962c50070ac2..b0608deb5fb7d 100644
--- a/graphics/fbpic/fbpic.info
+++ b/graphics/fbpic/fbpic.info
@@ -1,6 +1,6 @@
PRGNAM="fbpic"
VERSION="0.0.2"
-HOMEPAGE="http://keithhedger.hostingsiteforfree.com"
+HOMEPAGE="http://web.archive.org/web/20140723200425/http://keithhedger.hostingsiteforfree.com/pages/apps.html#fbpic"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/fbpic.tgz"
MD5SUM="74d77dee97a4004cc165a34b98cfb4c6"
DOWNLOAD_x86_64=""