summaryrefslogtreecommitdiffstats
path: root/install_sh.patch
diff options
context:
space:
mode:
authorKuklin István Alexander2022-06-19 20:22:20 +0200
committerKuklin István Alexander2022-06-19 20:22:20 +0200
commit445f1780bb7176e1e0daebf510a2f4bdca7ca5ba (patch)
treefa5bf1151237f87a62ba41671062cc972bfdc290 /install_sh.patch
parentedaf18ecc5c0e2ad53dfbd0b09334c3513de55df (diff)
downloadpackages-445f1780bb7176e1e0daebf510a2f4bdca7ca5ba.tar.gz
packages-445f1780bb7176e1e0daebf510a2f4bdca7ca5ba.tar.bz2
packages-445f1780bb7176e1e0daebf510a2f4bdca7ca5ba.zip
2.1.53
Diffstat (limited to 'install_sh.patch')
-rw-r--r--install_sh.patch26
1 files changed, 16 insertions, 10 deletions
diff --git a/install_sh.patch b/install_sh.patch
index 3dc6095..e76e1af 100644
--- a/install_sh.patch
+++ b/install_sh.patch
@@ -1,21 +1,27 @@
1--- install.sh.orig 2020-12-10 06:36:44.000000000 +0100 1--- install.sh.orig 2022-06-06 18:29:11.117752422 -0500
2+++ install.sh 2020-12-30 14:54:50.834734784 +0100 2+++ install.sh 2022-06-06 18:40:38.153466913 -0500
3@@ -15,7 +15,7 @@ 3@@ -13,9 +13,10 @@
4
5 rm -rf "$PREFIX"/share/anki "$PREFIX"/bin/anki
4 mkdir -p "$PREFIX"/share/anki 6 mkdir -p "$PREFIX"/share/anki
5 cp -av * "$PREFIX"/share/anki/ 7-cp -av --no-preserve=owner,context * "$PREFIX"/share/anki/
8+shopt -s extglob
9+cp -av --no-preserve=owner,context !(*install.sh) "$PREFIX"/share/anki/
6 mkdir -p "$PREFIX"/bin 10 mkdir -p "$PREFIX"/bin
7-ln -sf "$PREFIX"/share/anki/bin/Anki "$PREFIX"/bin/anki 11-ln -sf "$PREFIX"/share/anki/anki "$PREFIX"/bin/anki
8+ln -sf /usr/share/anki/bin/Anki "$PREFIX"/bin/anki 12+ln -sf ../share/anki/anki "$PREFIX"/bin/anki
9 # fix a previous packaging issue where we created this as a file 13 # fix a previous packaging issue where we created this as a file
10 (test -f "$PREFIX"/share/applications && rm "$PREFIX"/share/applications)||true 14 (test -f "$PREFIX"/share/applications && rm "$PREFIX"/share/applications)||true
11 mkdir -p "$PREFIX"/share/pixmaps 15 mkdir -p "$PREFIX"/share/pixmaps
12@@ -26,9 +26,4 @@ 16@@ -26,11 +26,4 @@
13 mv anki.desktop "$PREFIX"/share/applications/;\ 17 mv -Z anki.desktop "$PREFIX"/share/applications/;\
14 mv anki.1 "$PREFIX"/share/man/man1/) 18 mv -Z anki.1 "$PREFIX"/share/man/man1/)
15 19
16-xdg-mime install anki.xml --novendor 20-xdg-mime install anki.xml --novendor
17-xdg-mime default anki.desktop application/x-colpkg 21-xdg-mime default anki.desktop application/x-colpkg
18-xdg-mime default anki.desktop application/x-apkg 22-xdg-mime default anki.desktop application/x-apkg
19-xdg-mime default anki.desktop application/x-ankiaddon 23-xdg-mime default anki.desktop application/x-ankiaddon
20- 24-
25-rm install.sh
26-
21 echo "Install complete. Type 'anki' to run." 27 echo "Install complete. Type 'anki' to run."