summaryrefslogtreecommitdiffstats
path: root/multimedia/winff/winff.SlackBuild
diff options
context:
space:
mode:
author B. Watson <urchlay@slackware.uk>2023-05-27 21:29:07 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-03 10:38:30 +0700
commitf309bfa5429b263ceb7402515870fb958003856c (patch)
treea7ce763f091d72e3b98094d8b5f221fc4af42ce2 /multimedia/winff/winff.SlackBuild
parent8908e1843d5d45f4878e1bf649559294e10ccab8 (diff)
downloadslackbuilds-f309bfa5429b263ceb7402515870fb958003856c.tar.gz
slackbuilds-f309bfa5429b263ceb7402515870fb958003856c.tar.xz
multimedia/winff: Fix ARCH, README grammar.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--multimedia/winff/winff.SlackBuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/multimedia/winff/winff.SlackBuild b/multimedia/winff/winff.SlackBuild
index f97fc8396b..9de9cf69ba 100644
--- a/multimedia/winff/winff.SlackBuild
+++ b/multimedia/winff/winff.SlackBuild
@@ -23,6 +23,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230527 bkw: modified by SlackBuilds.org:
+# - fix ARCH, use separate CPU variable for the compiler.
+# - grammar cleanups for README.
+# - stop creating /root/.lazarus/compilertest.pas outside of $TMP.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=winff
@@ -40,10 +45,6 @@ case "$( uname -m )" in
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
-
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -54,10 +55,10 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
case "$ARCH" in
- i?86) ARCH="i386"
+ i?86) CPU="i386"
LIBDIRSUFFIX=""
;;
- x86_64) ARCH="x86_64"
+ x86_64) CPU="x86_64"
LIBDIRSUFFIX="64"
;;
*) printf "$ARCH is not supported...\n"
@@ -78,9 +79,9 @@ cd $PRGNAM-$LONGNAM
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 \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
echo "Patching Winff, See README and changelog for Details"
@@ -112,12 +113,11 @@ cd ../..
echo "Building WinFF with QT5 Widget insted of GTK"
-lazbuild --lazarusdir=/usr/share/lazarus --widgetset=qt5 --cpu=$ARCH -B $TMP/$PRGNAM-$LONGNAM/$PRGNAM/winff.lpr
-
-install -m 0755 -D $TMP/$PRGNAM-$LONGNAM/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM
+HOME=$(pwd) lazbuild --lazarusdir=/usr/share/lazarus \
+ --widgetset=qt5 --cpu=$CPU \
+ -B $TMP/$PRGNAM-$LONGNAM/$PRGNAM/winff.lpr
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+install -s -m 0755 -D $TMP/$PRGNAM-$LONGNAM/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM
mkdir -pv $PKG/usr/share/winff
cp -a $TMP/$PRGNAM-$LONGNAM/$PRGNAM/languages $PKG/usr/share/winff/