From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/xdg-utils/xdg-screensaver-mv-T.patch | 25 +++++++++++++++++++++++++ repo/xdg-utils/xdg-utils.xibuild | 24 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 repo/xdg-utils/xdg-screensaver-mv-T.patch create mode 100644 repo/xdg-utils/xdg-utils.xibuild (limited to 'repo/xdg-utils') diff --git a/repo/xdg-utils/xdg-screensaver-mv-T.patch b/repo/xdg-utils/xdg-screensaver-mv-T.patch new file mode 100644 index 0000000..9e209f7 --- /dev/null +++ b/repo/xdg-utils/xdg-screensaver-mv-T.patch @@ -0,0 +1,25 @@ +--- ./scripts/xdg-screensaver.in.orig ++++ ./scripts/xdg-screensaver.in +@@ -26,18 +26,10 @@ + + #@xdg-utils-common@ + +-# Check if we can use "mv -T" +-if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then +- # We can securely move files in /tmp with mv -T +- DEBUG 1 "mv -T available" +- MV="mv -T" +- screensaver_file="/tmp/xdg-screensaver-$USER-"`echo $DISPLAY | sed 's/:/-/g'` +-else +- # No secure moves available, use home dir +- DEBUG 1 "mv -T not available" +- MV="mv" +- screensaver_file="$HOME/.xdg-screensaver-"`echo $(hostname)-$DISPLAY | sed 's/:/-/g'` +-fi ++# No secure moves available, use home dir ++DEBUG 1 "mv -T not available" ++MV="mv" ++screensaver_file="$HOME/.xdg-screensaver-"`echo $(hostname)-$DISPLAY | sed 's/:/-/g'` + lockfile_command=`which lockfile 2> /dev/null` + + lockfile() diff --git a/repo/xdg-utils/xdg-utils.xibuild b/repo/xdg-utils/xdg-utils.xibuild new file mode 100644 index 0000000..ad51ab4 --- /dev/null +++ b/repo/xdg-utils/xdg-utils.xibuild @@ -0,0 +1,24 @@ +#!/bin/sh + +NAME="xdg-utils" +DESC="Basic desktop integration functions" + +MAKEDEPS="make docbook-dtd libxml2 libxslt xmlto lynx" +DEPS="file xprop xset " + +PKG_VER=1.1.3 +SOURCE="https://portland.freedesktop.org/download/xdg-utils-$PKG_VER.tar.gz" +ADDITIONAL="xdg-screensaver-mv-T.patch " + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static + make +} + +package () { + make DESTDIR=$PKG_DEST install +} -- cgit v1.2.1