desktop/awoken-icon-theme: Speed up build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-04-07 18:57:54 -04:00 committed by Willy Sudiarto Raharjo
parent f0fb0bad0a
commit 6194f6bb20
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 11 additions and 0 deletions

View File

@ -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}