aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorLeo C <leoc@gmx.com>2020-04-17 21:57:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-19 10:00:21 +0700
commitcecd813bfc9658a54fc0fd7e57345158dd9e8e16 (patch)
tree83c747a417d33108d5ec10ec0ebfa27ce854b57d /desktop
parentd0b74bcc0a36568769a768c4dd23413f68ea8089 (diff)
desktop/Surfn: Simplify & speed up build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/Surfn/Surfn.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/desktop/Surfn/Surfn.SlackBuild b/desktop/Surfn/Surfn.SlackBuild
index 3f4400577005a..a4896dc5c74cf 100644
--- a/desktop/Surfn/Surfn.SlackBuild
+++ b/desktop/Surfn/Surfn.SlackBuild
@@ -43,16 +43,13 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/share/icons
cp -a surfn-icons/$PRGNAM* $PKG/usr/share/icons
-find -L $PKG/usr/share/icons -type f -exec chmod 644 {} \;
-find -L $PKG/usr/share/icons -type f -name '*.sh' -exec chmod 755 {} \;
+find $PKG/usr/share/icons \
+ \( -name create-new-icon-theme.cache.sh -o -name icon-theme.cache \) -exec rm -f {} \;
+find $PKG/usr/share/icons -type d -exec chmod 755 {} \;
+find $PKG/usr/share/icons -type f -exec chmod 644 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md \
@@ -63,4 +60,11 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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
+
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}