summaryrefslogtreecommitdiffstats
path: root/multimedia/winff/winff.SlackBuild
diff options
context:
space:
mode:
author Vijay Marcel <vijaymarcel@outlook.com>2022-09-24 22:12:38 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-25 13:59:47 +0700
commitc6b8cacaa8bb8a3b5ba3f5639bb0b1fdb15de687 (patch)
treec23b76f6b22464be6023e4b45e89727f98af2d3f /multimedia/winff/winff.SlackBuild
parent6e38e408ea8a4d54363a45b89f098c479b00bdaf (diff)
downloadslackbuilds-c6b8cacaa8bb8a3b5ba3f5639bb0b1fdb15de687.tar.gz
slackbuilds-c6b8cacaa8bb8a3b5ba3f5639bb0b1fdb15de687.tar.xz
multimedia/winff: Rebuilt with qt5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/winff/winff.SlackBuild')
-rw-r--r--multimedia/winff/winff.SlackBuild64
1 files changed, 32 insertions, 32 deletions
diff --git a/multimedia/winff/winff.SlackBuild b/multimedia/winff/winff.SlackBuild
index 3ba18da674..8f7b6ace10 100644
--- a/multimedia/winff/winff.SlackBuild
+++ b/multimedia/winff/winff.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=winff
VERSION=${VERSION:-20220903_8e4491b}
LONGNAM=${LONGNAM:-8e4491be149031916053378d859ce156cf9b43d3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -83,37 +83,37 @@ 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 {} \;
-echo "Replacing Dead Links, See README for Details"
-
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit1.pas
-sed -i 's+http://www.winff.org/forums/+https://github.com/WinFF/winff/issues+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit1.pas
-sed -i 's+'http://www.winff.org'+'https://github.com/WinFF/winff'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit1.pas
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit2.pas
-sed -i 's+'http://www.winff.org'+'https://github.com/WinFF/winff'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.lfm
-sed -i 's#Kyle Schwarz#Gyan Doshi#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.lfm
-sed -i 's+'http://ffmpeg.org'+'https://www.ffmpeg.org'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.lfm
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's#'https://launchpad.net/~paul-climbing/+archive/ppa/'#'https://tracker.debian.org/pkg/winff'#g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://ffmpeg.org'+'https://www.ffmpeg.org'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://www.biggmatt.com'+'https://www.biggmatt.com/p/winff.html'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://www.bandshed.net/'+'https://www.bandshed.net/'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://istoff.blogspot.com'+'https://istoff.blogspot.com/'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://ffmpeg.zeranoe.com'+'https://www.gyan.dev/ffmpeg/'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://www.winff.org'+'https://github.com/WinFF/winff'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's+'http://ffmpeg.zeranoe.com/builds/'+'https://www.gyan.dev/ffmpeg/builds/'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit3.pas
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit4.pas
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit5.pas
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit6.pas
-sed -i 's+"WinFF.org"+"github.com/WinFF/winff"+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/winff.lpi
-sed -i 's#http://winff.org#https://github.com/WinFF/winff#' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/winff.lpr
-
-echo "Correcting the hardcoded Documentation location for Slackware"
-
-sed -i 's+'/usr/share/doc/winff/WinFF.'+'/usr/doc/winff-20220903_8e4491b/WinFF.'+g' $TMP/$PRGNAM-$LONGNAM/$PRGNAM/unit1.pas
-
-echo "Building WinFF"
-
-lazbuild --lazarusdir=/usr/share/lazarus --cpu=$ARCH -B $TMP/$PRGNAM-$LONGNAM/$PRGNAM/winff.lpr
+echo "Patching Winff, See README and changelog for Details"
+
+cd $PRGNAM
+
+patch --verbose --unified < $CWD/patches/unit1_lfm.patch
+patch --verbose --unified < $CWD/patches/unit1_pas.patch
+patch --verbose --unified < $CWD/patches/unit2_pas.patch
+patch --verbose --unified < $CWD/patches/unit3_lfm.patch
+patch --verbose --unified < $CWD/patches/unit3_pas.patch
+patch --verbose --unified < $CWD/patches/unit4_pas.patch
+patch --verbose --unified < $CWD/patches/unit5_pas.patch
+patch --verbose --unified < $CWD/patches/unit6_pas.patch
+patch --verbose --unified < $CWD/patches/winff_lpi.patch
+patch --verbose --unified < $CWD/patches/winff_lpr.patch
+patch --verbose --unified < $CWD/patches/winff_1.patch
+
+echo "Patching the languages file"
+
+find languages -type f -not \( -name 'winff.po' -or -name 'winff.pot' -or -name 'winff.en_GB.po' \) -delete
+
+cd languages
+
+patch --verbose --unified < $CWD/patches/winff_po.patch
+patch --verbose --unified < $CWD/patches/winff_pot.patch
+patch --verbose --unified < $CWD/patches/winff_en_GB_po.patch
+
+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