commit b002c8331bafff4f3fc50a1f8836377d2c9e6f5b
parent 247ac737e50de221b9c9ac619756d2b11f8641af
Author: aabacchus <ben@bvnf.space>
Date: Sun, 16 May 2021 13:02:30 +0100
graphite-harfbuzz: fix wrong perms and symlinks, note need to run kiss a
Diffstat:
3 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -26,7 +26,18 @@ to have a separate package. Let me know if you have any thoughts.
To use, clone the repo and add it to `KISS_PATH`, then run:
```
-$ kiss b miktex && kiss i miktex
+$ kiss b graphite-harfbuzz
+```
+This will take a moment, then print a message telling you to run kiss-alternatives.
+MiKTeX needs the harfbuzz font libraries to be built with graphite support,
+so now run:
+```
+$ kiss a | grep graphite-harfbuzz | kiss a -
+```
+to switch the necessary libraries to include graphite support.
+Now, you can sit back and run
+```
+$ kiss b miktex
```
This might take a while.
diff --git a/graphite-harfbuzz/build b/graphite-harfbuzz/build
@@ -31,5 +31,8 @@ meson \
ninja -C output
ninja -C output install
-install -Dt "$1/usr/include/harfbuzz" tmp/usr/include/harfbuzz/hb-graphite2.h
-install -Dt "$1/usr/lib" tmp/usr/lib/libharfbuzz*
+install -Dm644 -t "$1/usr/include/harfbuzz" tmp/usr/include/harfbuzz/hb-graphite2.h
+install -Dm644 -t "$1/usr/include/harfbuzz" tmp/usr/lib/pkgconfig/harfbuzz.pc
+# copy, rather than install, to preserve symlinks and different perms
+mkdir -p "$1/usr/lib"
+cp -pd tmp/usr/lib/libharfbuzz* "$1/usr/lib"
diff --git a/graphite-harfbuzz/post-install b/graphite-harfbuzz/post-install
@@ -1,5 +1,15 @@
#!/bin/sh -e
-echo "This package is a bit messy and replaces your system harfbuzz libs"
-echo "with kiss-alternatives. I wouln't trust me with such important files,"
-echo "so be careful, because I might not have updated this properly."
+cat << EOF
+########################################################################
+# #
+# This package is a bit messy and replaces your system harfbuzz libs #
+# with kiss-alternatives. I wouln't trust me with such important files,#
+# so be careful, because I might not have updated this properly. #
+# #
+# To build MiKTeX, you'll need to run the following command: #
+# #
+# $ kiss a | grep graphite-harfbuzz | kiss a - #
+# #
+########################################################################
+EOF