diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-06 19:41:03 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-07 08:45:29 +0700 |
commit | c15d6fd7da0a19f7fc93596c18467531bad55945 (patch) | |
tree | 3652b245715c3ac8920e8716b282f9018aeb5a18 /development/highlight | |
parent | 19feaf7dad44bcfc8df1019a575a42da2f40eb42 (diff) |
development/highlight: Disable parallel jobs on install.
make install with multiple jobs enabled will fail because
of a race condition on creating directories.
Also add icon and desktop file handling to doinst.sh.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/highlight')
-rw-r--r-- | development/highlight/doinst.sh | 10 | ||||
-rw-r--r-- | development/highlight/highlight.SlackBuild | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/development/highlight/doinst.sh b/development/highlight/doinst.sh index 686b2a1f0ab1d..29442be2296d5 100644 --- a/development/highlight/doinst.sh +++ b/development/highlight/doinst.sh @@ -12,3 +12,13 @@ config() { } config etc/highlight/filetypes.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/development/highlight/highlight.SlackBuild b/development/highlight/highlight.SlackBuild index b2265784f0a8b..8cba0db42c16c 100644 --- a/development/highlight/highlight.SlackBuild +++ b/development/highlight/highlight.SlackBuild @@ -66,7 +66,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; make cli gui -make install install-gui DESTDIR=$PKG +make -j1 install install-gui DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |