summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2020-04-10 09:51:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-10 09:51:46 +0700
commit1c1d8f6cc335a8eed690faf5c884b76dc4876e0b (patch)
tree92ee5259a2d6531a47a14051f624b1525679873b /desktop
parent092516fe2fb6df6e05c82b9c438be8b593fcfbb8 (diff)
downloadslackbuilds-1c1d8f6cc335a8eed690faf5c884b76dc4876e0b.tar.gz
desktop/numix-icon-theme: Speed up symlink creation.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/numix-icon-theme/numix-icon-theme.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
index c0c2ff4947..647e5caaa1 100644
--- a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
+++ b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild
@@ -59,4 +59,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
+find . -type l \
+ -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \
+ sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}