diff options
Diffstat (limited to 'academic/xiphos/xiphos.SlackBuild')
-rw-r--r-- | academic/xiphos/xiphos.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/academic/xiphos/xiphos.SlackBuild b/academic/xiphos/xiphos.SlackBuild index 769d5c613c..34e806c91f 100644 --- a/academic/xiphos/xiphos.SlackBuild +++ b/academic/xiphos/xiphos.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for xiphos -# Copyright 2015-2024 Tim Dickson, email: dickson.tim@googlemail.com +# Copyright 2015-2025 Tim Dickson, email: dickson.tim@googlemail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xiphos -VERSION=${VERSION:-4.2.1} -BUILD=${BUILD:-6} +VERSION=${VERSION:-4.3.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +40,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 @@ -83,14 +80,18 @@ 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 {} \; -#patch to make work with newer glib -echo "#define GLIB_VERSION_MIN_REQUIRED (GLIB_VERSION_2_26)" >>cmake/config.h.cmake.in -if $(pkg-config --exists webkit2gtk-4.1); then #patch for webkit2gtk4.1 - sed -i 's/webkit2gtk-4.0/webkit2gtk-4.1/g' cmake/XiphosDependencies.cmake - sed -i 's/libsoup-2.4/libsoup-3.0/g' cmake/XiphosDependencies.cmake -fi +#patch to make work with newer glib. not needed since v4.3.1 +#echo "#define GLIB_VERSION_MIN_REQUIRED (GLIB_VERSION_2_26)" >>cmake/config.h.cmake.in +#patch to handle webkit2gtk4.1 as well as webkit2gtk4.0 not needed any more +#if $(pkg-config --exists webkit2gtk-4.1); then #patch for webkit2gtk4.1 +# sed -i 's/webkit2gtk-4.0/webkit2gtk-4.1/g' cmake/XiphosDependencies.cmake +# sed -i 's/libsoup-2.4/libsoup-3.0/g' cmake/XiphosDependencies.cmake +#fi +#add next line to prevent out of tree file being created +XDG_RUNTIME_DIR=$(pwd) mkdir -p build cd build +export XDG_CACHE_HOME=$(pwd) cmake -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -117,6 +118,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -rf $PKG/usr/share/doc/ +rm $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL.md mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |