1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 # https://gitlab.freedesktop.org/xdg/xdg-utils/commits/master
6 _commit=8ae02631a9806da11b34cd6b274af02d28aee5da # master # 2022-11-06
7 pkgver=1.1.3+25+g8ae0263
9 pkgdesc="Command line tools that assist applications with a variety of desktop integration tasks"
11 url="https://www.freedesktop.org/wiki/Software/xdg-utils/"
13 depends=('sh' 'file' 'xorg-xset' 'xorg-xprop') # xset + xprop needed inside xdg-screensaver
14 makedepends=('docbook-xsl' 'lynx' 'xmlto' 'git')
15 optdepends=('kde-cli-tools: for KDE Plasma5 support in xdg-open'
16 'exo: for Xfce support in xdg-open'
17 'pcmanfm: for LXDE support in xdg-open'
18 'perl-file-mimeinfo: for generic support in xdg-open'
19 'perl-net-dbus: Perl extension to dbus used in xdg-screensaver'
20 'perl-x11-protocol: Perl X11 protocol used in xdg-screensaver')
21 source=(#https://portland.freedesktop.org/download/$pkgname-$pkgver.tar.gz
22 #0001_better_pcmanfm_check.patch
23 #drop_obsolete_GNOME_support.patch) #{,.asc}
24 "git+https://gitlab.freedesktop.org/xdg/xdg-utils.git#commit=$_commit"
25 egrep_is_obsolete.patch::https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/21.patch
27 #sha1sums=('98294cf332c341b85e481d98e9ea59357fe1efc7'
28 # 'f5c09cc10d7b88c2033392efd4179da65a1f47b1'
29 # '32d4282c2e6c7345ddf04016c91f0defbf88b356')
31 '550a8db792bb810168583be02e0c9e665a7a6ce245b48424188be235e35d4799')
32 #validpgpkeys=('8B75CA7811367175D05F3B03C43570F80CC295E6') # "Per Olofsson <pelle@pqz.se>"
36 git describe --tags | sed 's/^v//;s/-/+/g'
40 # cd $pkgname #-$pkgver
42 # patch -Np1 -i ../0001_better_pcmanfm_check.patch
43 # # drop Gnome2 support - FS58096/https://bugs.freedesktop.org/show_bug.cgi?id=90775
44 # patch -Np1 -i ../drop_obsolete_GNOME_support.patch
46 # NOCONFIGURE=1 ./autogen.sh
49 # switch from non-standard "egrep" to POSIX "grep -E"
50 patch -Np1 -i ../egrep_is_obsolete.patch
55 ./configure --prefix=/usr --mandir=/usr/share/man
61 make DESTDIR="${pkgdir}" install
62 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
64 # install empty directory to prevent xdg-desktop-menu install *.desktop to fail, see FS#33316
65 install -dm755 "$pkgdir"/usr/share/desktop-directories