summaryrefslogtreecommitdiffstats
path: root/academic/equalx/equalx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/equalx/equalx.SlackBuild')
-rw-r--r--academic/equalx/equalx.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/academic/equalx/equalx.SlackBuild b/academic/equalx/equalx.SlackBuild
index 712c8dc7cf..21a6bc3c6b 100644
--- a/academic/equalx/equalx.SlackBuild
+++ b/academic/equalx/equalx.SlackBuild
@@ -23,7 +23,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Now maintained by B. Watson <yalhcru@gmail.com>
+# Now maintained by B. Watson <urchlay@slackware.uk>
+
+# 20210802 bkw: BUILD=3, update for qt5 on -current.
# 20200101 bkw:
# - take over maintenance
@@ -38,7 +40,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=equalx
VERSION=${VERSION:-0.7.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,9 +52,6 @@ if [ -z "$ARCH" ]; then
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
@@ -88,13 +87,18 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# Note: patches are gzipped because they have a mix of \n and \r\n
+# line endings. git can have issues with that.
+
# Make sure the application can find the external binaries it runs,
# without defaulting to silly things like .exe files. The patch actually
# makes it look for pdflatex in both places it might be found (/usr/bin
# for texlive, /usr/share/texmf/bin for tetex).
zcat $CWD/externpaths.diff.gz | patch -p1
-CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" qmake
+zcat $CWD/qt5fix.diff.gz | patch -p1
+
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" qmake-qt5
sed -i "s,-O2,$SLKCFLAGS," Makefile
make