1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/shared-mime-info/shared-mime-info.conf
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 cat > $root/etc/profile.d/0-xdg-base <<EOT
14 export XDG_CONFIG_DIRS="/etc/xdg"
15 for d in /etc/opt/*/xdg; do
16 XDG_CONFIG_DIRS="\$XDG_CONFIG_DIRS:\$d"
19 export XDG_DATA_DIRS="/usr/share"
20 for d in /opt/*/share; do
21 XDG_DATA_DIRS="\$XDG_DATA_DIRS:\$d"
24 # for interactive shells
27 export XDG_RUNTIME_DIR="/tmp/\$USER"
28 mkdir -p "\$XDG_RUNTIME_DIR" && chmod 0700 "\$XDG_RUNTIME_DIR"
33 hook_add postmake 5 "xdg_pc"
35 var_append mesonopt ' ' '-Dupdate-mimedb=false'
38 sed -i "s,^libdir=.*/lib,\0${libdir##*/lib}," shared-mime-info.pc.in
40 [[ $libdir != */lib ]] || hook_add preconf 3 fix_pkgconfig