academic/xflr5: gzip patches.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Daniel Prosser 2023-12-24 18:45:39 +07:00 committed by Willy Sudiarto Raharjo
parent 2dc0fc396e
commit 3bde9c7a59
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 3 additions and 12 deletions

View file

@ -1,11 +0,0 @@
--- xflr5v6/xflr5v6.pro 2023-11-04 12:13:23.000000000 -0400
+++ xflr5v6/xflr5v6.pro.new 2023-12-21 03:12:21.572518974 -0500
@@ -121,7 +121,7 @@
QMAKE_CFLAGS_WARN_ON -= -W3
QMAKE_CFLAGS_WARN_ON += -W4
-LIBS += -L../XFoil-lib -lXFoil
+LIBS += ../XFoil-lib/libXFoil.so
include(xflr5v6.pri)

Binary file not shown.

View file

@ -88,7 +88,9 @@ sed -i "s/Exec=\/usr\/local\/bin\/xflr5/Exec=\/usr\/bin\/xflr5/g" linux/xflr5.de
sed -i "s/Icon=\/usr\/local\/share\/xflr5\/xflr5.png/Icon=xflr5/g" linux/xflr5.desktop
# Fix linking XFoil-lib
patch -p0 < $CWD/link_directly.patch
# Note: this patch *must* be gzipped, as it contain a mix of \n and \r\n
# line endings, and git would strip the \r's.
zcat $CWD/link_directly.patch.gz | patch -p0
qmake-qt5 \
PREFIX=/usr \