diff options
Diffstat (limited to 'desktop/nautilus/nautilus.SlackBuild')
-rw-r--r-- | desktop/nautilus/nautilus.SlackBuild | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/desktop/nautilus/nautilus.SlackBuild b/desktop/nautilus/nautilus.SlackBuild index d7609f0522..84692551bf 100644 --- a/desktop/nautilus/nautilus.SlackBuild +++ b/desktop/nautilus/nautilus.SlackBuild @@ -21,12 +21,16 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# 2023 Apr 9 - Added libportal patch to allow building this older nautilus version +# to build against newer libportal versions. The patch can be removed once a newer +# slackware version is released and nautilus can be upgraded. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nautilus VERSION=${VERSION:-41.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,6 +80,15 @@ 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 {} \; +# Conditionally patch nautilus source to allow it to build for newer +# libportal versions. Patch required for libportal >= 0.5 +if (pkg-config --atleast-version 0.5 libportal) ; then + echo "Patching build to allow building with libportal >= 0.5" + patch -Np1 -i $CWD/ae752ea07895b918683f664fe78950255f7faab0.patch +else + echo "Skipping libportal patch" +fi + mkdir build cd build CFLAGS="$SLKCFLAGS" \ |