diff options
author | B. Watson <yalhcru@gmail.com> | 2020-04-07 18:57:54 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-19 10:52:22 +0700 |
commit | 6194f6bb207d5d86b942c0fb8a10191c53e2b085 (patch) | |
tree | 994489edf3da6c4ea15f4042708a5627adcf016a /desktop/awoken-icon-theme | |
parent | f0fb0bad0ae66cbb670b8e96cd78e0c3e6f90f3e (diff) | |
download | slackbuilds-6194f6bb207d5d86b942c0fb8a10191c53e2b085.tar.gz |
desktop/awoken-icon-theme: Speed up build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/awoken-icon-theme')
-rw-r--r-- | desktop/awoken-icon-theme/awoken-icon-theme.SlackBuild | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/awoken-icon-theme/awoken-icon-theme.SlackBuild b/desktop/awoken-icon-theme/awoken-icon-theme.SlackBuild index 03f84329b6..c9b1d2a7bd 100644 --- a/desktop/awoken-icon-theme/awoken-icon-theme.SlackBuild +++ b/desktop/awoken-icon-theme/awoken-icon-theme.SlackBuild @@ -60,4 +60,15 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG +# 20200407 bkw: makepkg's symlink search and doinst.sh creation doesn't +# scale well. This makes the build complete much faster, and create an +# identical doinst.sh. +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 + +# The above doesn't handle spaces in filenames. This isn't a general-purpose +# solution, but special-case for this build: +sed -i 's,Google ,Google\\ ,g' $PKG/install/doinst.sh + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |