summaryrefslogtreecommitdiff
path: root/user/xdg-utils
diff options
context:
space:
mode:
Diffstat (limited to 'user/xdg-utils')
-rw-r--r--user/xdg-utils/APKBUILD36
-rw-r--r--user/xdg-utils/xdg-screensaver-mv-T.patch25
2 files changed, 61 insertions, 0 deletions
diff --git a/user/xdg-utils/APKBUILD b/user/xdg-utils/APKBUILD
new file mode 100644
index 000000000..08766dfaa
--- /dev/null
+++ b/user/xdg-utils/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=xdg-utils
+pkgver=1.1.3
+pkgrel=0
+pkgdesc="Basic desktop integration functions"
+url="https://www.freedesktop.org/wiki/Software/xdg-utils/"
+arch="noarch"
+options="!check" # No test suite.
+license="MIT"
+depends="xprop xset"
+makedepends="libxml2-utils libxslt lynx xmlto"
+subpackages="$pkgname-doc"
+source="https://portland.freedesktop.org/download/xdg-utils-$pkgver.tar.gz
+ xdg-screensaver-mv-T.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d1f819a211eb4104a90dfdc6fedcb640fd46b15ccfc8762266f8f538c49d74cb00027b8c1af991fb2a200acb4379986ae375700e06a2aa08fb41a38f883acb3e xdg-utils-1.1.3.tar.gz
+db0896979fbc3b575826b4d732658564d08bcfc957b3fa1490fe02e4cc7b52adfa1e05956432a732dae8f50145e0040bc145739ba5692ae1b86fa74be8174436 xdg-screensaver-mv-T.patch"
diff --git a/user/xdg-utils/xdg-screensaver-mv-T.patch b/user/xdg-utils/xdg-screensaver-mv-T.patch
new file mode 100644
index 000000000..9e209f77c
--- /dev/null
+++ b/user/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()