summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2020-04-10 09:52:20 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-10 09:52:20 +0700
commit06a103a47aaf9e2b4934ceb7d283fb67ca7613a7 (patch)
treeeafa6303b2a7192ea5660fdf6deab692d351144a
parent1c1d8f6cc335a8eed690faf5c884b76dc4876e0b (diff)
downloadslackbuilds-06a103a47aaf9e2b4934ceb7d283fb67ca7613a7.tar.gz
desktop/numix-icon-theme-circle: Speed up symlink creation.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild b/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild
index b12e167d67..5b7bbb52b0 100644
--- a/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild
+++ b/desktop/numix-icon-theme-circle/numix-icon-theme-circle.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}