xdg-utils: update to 1.2.1.

closes #50145
closes #50374
This commit is contained in:
Đoàn Trần Công Danh 2024-05-01 21:04:53 +07:00 committed by classabbyamp
parent e81a0e434a
commit 55b5622aae
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
3 changed files with 7 additions and 57 deletions

View file

@ -1,40 +0,0 @@
From 9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197 Mon Sep 17 00:00:00 2001
From: Andrea Tarocchi <andrea.tarocchi@gmail.com>
Date: Thu, 20 Feb 2020 22:01:04 +0100
Subject: [PATCH] fixed #166: xdg-open dose not search correctly in directories
with spaces in the name
---
scripts/xdg-mime.in | 2 +-
scripts/xdg-open.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
index 034d0ef..612d2ce 100644
--- a/scripts/xdg-mime.in
+++ b/scripts/xdg-mime.in
@@ -307,7 +307,7 @@ search_desktop_file()
grep -l "$MIME;" "$dir/"*.desktop 2>/dev/null
- for f in $dir/*/; do
+ for f in "$dir/"*/; do
[ -d "$f" ] && search_desktop_file "$MIME" "$f"
done
}
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 202f3e3..8de839a 100644
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -328,7 +328,7 @@ search_desktop_file()
fi
fi
- for d in $dir/*/; do
+ for d in "$dir/"*/; do
[ -d "$d" ] && search_desktop_file "$default" "$d" "$target"
done
}
--
GitLab

View file

@ -1,11 +0,0 @@
xdg-settings uses the ${parameter:offset} substring expansion,
which is not available in posix shell
--- a/scripts/xdg-settings.in 2018-05-10 17:02:31.000000000 +0200
+++ b/scripts/xdg-settings.in 2018-05-10 17:02:31.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#---------------------------------------------
# xdg-settings
#

View file

@ -1,18 +1,19 @@
# Template file for 'xdg-utils'
pkgname=xdg-utils
version=1.1.3
revision=5
version=1.2.1
revision=1
build_style=gnu-configure
make_check_target=test
hostmakedepends="xmlto lynx"
depends="bash xset"
depends="xset"
short_desc="Tools to assist applications with various desktop integration tasks"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
changelog="https://gitlab.freedesktop.org/xdg/xdg-utils/-/raw/master/ChangeLog"
distfiles="https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/v${version}/xdg-utils-v${version}.tar.bz2"
checksum=93d510dccf328378f012fe195b4574c2fac1cd65a74d0852d6eaa72e5a2065a7
make_check=no # tests are interactive and rely on system components
post_install() {
vlicense LICENSE