Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37045946
en ru br
Репозитории ALT
S:2.1.41-alt23
5.1: 2.1.41-alt9
4.1: 2.1.41-alt3.M41.1
4.0: 2.1.35-alt5
3.0: 2.1.25-alt3
+backports:2.1.29-alt4.0.M30
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: menu

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/usr/sbin/install-menu
# freedesktop desktop entry spec - directory generation
# http://www.freedesktop.org/Standards/desktop-entry-spec
# Copyright 2004 - Chris Cheney
# Licensed under the GNU General Public License, version 2.

compat="menu-1"

!include menu.h

compat="menu-2"

function DirEntry() =
"[Desktop Entry]\n"
"Type=Directory\n"
"Encoding=UTF-8\n"
"Name=" title() "\n"
"Icon=" ifelse($icon,$icon,"altlinux") "\n"
forall(languages(), "lang", "Name[" substr($lang, "0", "2") "]=" encode_translate($lang,title(), "utf8") "\n")
ifelse($xdg_extra, $xdg_extra "\n", ifnempty($extra_opt, $extra_opt "\n"))
ifneq(toupper($needs), "X11", ifneq(toupper($needs), "TEXT", "OnlyShowIn=" toupper($needs) ";\n"));

#outputencoding="UTF-8";

supported;
gnome = ;
kde = ;
x11 = ;
text = ;
endsupported;

startmenu = "";
endmenu = "";
submenutitle = DirEntry();

treewalk = "M";

genmenu = ifempty($command,tolower( "alt" replacewith($section,"/ .","---") ".directory"));
removemenu = "rm -rf " prefix()"/alt-* "prefix()"/kde-* "prefix()"/gnome-* ";

rootsection = "";

prerun = "rm -rf " prefix()"/alt-* "prefix()"/kde-* "prefix()"/gnome-* ";
postrun = "ln -sf /usr/share/desktop-directories/altlinux-main.directory " prefix()"/alt.directory";

preoutput = "";

rootprefix = "/var/cache/desktop-directories";

userprefix = ".local/share/desktop-directories";
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin