summaryrefslogtreecommitdiffstats
path: root/install_sh.patch
diff options
context:
space:
mode:
Diffstat (limited to 'install_sh.patch')
-rw-r--r--install_sh.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/install_sh.patch b/install_sh.patch
new file mode 100644
index 0000000..e436b84
--- /dev/null
+++ b/install_sh.patch
@@ -0,0 +1,21 @@
1--- install.sh.orig 2020-12-10 06:36:44.000000000 +0100
2+++ install.sh 2020-12-30 14:54:50.834734784 +0100
3@@ -10,7 +10,7 @@
4 mkdir -p ${PREFIX}/share/anki
5 cp -av * ${PREFIX}/share/anki/
6 mkdir -p ${PREFIX}/bin
7-ln -sf ${PREFIX}/share/anki/bin/Anki ${PREFIX}/bin/anki
8+ln -sf /usr/share/anki/bin/Anki ${PREFIX}/bin/anki
9 # fix a previous packaging issue where we created this as a file
10 (test -f ${PREFIX}/share/applications && rm ${PREFIX}/share/applications)||true
11 mkdir -p ${PREFIX}/share/pixmaps
12@@ -21,9 +21,4 @@
13 mv anki.desktop ${PREFIX}/share/applications/;\
14 mv anki.1 ${PREFIX}/share/man/man1/)
15
16-xdg-mime install anki.xml --novendor
17-xdg-mime default anki.desktop application/x-colpkg
18-xdg-mime default anki.desktop application/x-apkg
19-xdg-mime default anki.desktop application/x-ankiaddon
20-
21 echo "Install complete. Type 'anki' to run."