4f75cf25fd
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
23 lines
785 B
Diff
23 lines
785 B
Diff
#based on debian's patch by Tom Jampen <tom@cryptography.ch>
|
|
# Description:
|
|
# Patches texstudio.desktop to add important keywords. It also removes the
|
|
# useless categories and no longer needed encoding entry.
|
|
|
|
--- a/utilities/texstudio.desktop
|
|
+++ b/utilities/texstudio.desktop
|
|
@@ -1,5 +1,5 @@
|
|
[Desktop Entry]
|
|
-Categories=Office;Publishing;Qt;X-SuSE-Core-Office;X-Mandriva-Office-Publishing;X-Misc;
|
|
+Categories=Office;Publishing;
|
|
Exec=texstudio %F
|
|
GenericName=LaTeX Editor
|
|
GenericName[de]=LaTeX Editor
|
|
@@ -8,7 +8,7 @@
|
|
Comment[de]=LaTeX Entwicklungsumgebung
|
|
Comment[fr]=Environnement de développement LaTeX
|
|
Icon=texstudio
|
|
-Keywords=LaTeX;TeX;editor;
|
|
+Keywords=LaTeX;TeX;editor;pdflatex;xelatex;lualatex;context;bibtex;
|
|
MimeType=text/x-tex;
|
|
Name=TeXstudio
|
|
StartupNotify=false
|