diff options
Diffstat (limited to 'academic/equalx/equalx.SlackBuild')
-rw-r--r-- | academic/equalx/equalx.SlackBuild | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/academic/equalx/equalx.SlackBuild b/academic/equalx/equalx.SlackBuild index 900e97e5e6..21a6bc3c6b 100644 --- a/academic/equalx/equalx.SlackBuild +++ b/academic/equalx/equalx.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for equalx @@ -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 @@ -34,10 +36,13 @@ # - use a .desktop file that validates # - minor cleanups/etc in script, slack-desc, README +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=equalx VERSION=${VERSION:-0.7.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -47,7 +52,11 @@ if [ -z "$ARCH" ]; then 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} @@ -78,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 @@ -111,5 +125,5 @@ 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 |