summaryrefslogtreecommitdiffstats
path: root/graphics/fotowall/fotowall.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fotowall/fotowall.SlackBuild')
-rw-r--r--graphics/fotowall/fotowall.SlackBuild40
1 files changed, 25 insertions, 15 deletions
diff --git a/graphics/fotowall/fotowall.SlackBuild b/graphics/fotowall/fotowall.SlackBuild
index 8f656353f9..62ca6764a9 100644
--- a/graphics/fotowall/fotowall.SlackBuild
+++ b/graphics/fotowall/fotowall.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for fotowall
# Home Page http://www.enricoros.com/opensource/fotowall/
@@ -6,30 +6,37 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
# New Maintainer - Nishant Limbachia <nishant _AT_ mnspace _DOT_ net> - 11/04/2011
-SRCNAM=Fotowall
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=fotowall
-VERSION=${VERSION:-20120227_eff7aa1}
+VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+# 20220320 bkw: Nonstandard flags, we need -fPIC even on 32-bit.
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
@@ -44,15 +51,18 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
-cd $SRCNAM-$VERSION
-chown -R root:root .
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
+# thanks gentoo maintainers
+zcat $CWD/fotowall-1.0-qt-5.11.patch.gz | patch -p1
+zcat $CWD/fotowall-1.0-qt-5.15.patch.gz | patch -p1
+ 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 \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
# Fix man page location.
sed -i 's|share/man|man|' $PRGNAM.pro
@@ -82,4 +92,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE