desktop/papirus-icon-theme: Add pre-made doinst.sh.gz.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jay Lanagan 2023-02-11 10:05:45 +00:00 committed by Willy Sudiarto Raharjo
parent defe293b29
commit e0d176f503
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 10 additions and 12 deletions

View File

@ -1,8 +0,0 @@
for theme in @THEMES@; do
if [ -e usr/share/icons/$theme/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/$theme >/dev/null 2>&1
fi
fi
done

Binary file not shown.

View File

@ -74,15 +74,21 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
sed -e "s/@THEMES@/$THEMES/" $CWD/doinst.sh > $PKG/install/doinst.sh #sed -e "s/@THEMES@/$THEMES/" $CWD/doinst.sh > $PKG/install/doinst.sh
# Premade and gzipped doinst.sh
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
cd $PKG cd $PKG
# To create a new doinst.sh, comment the next line, uncomment the lines below
# it and @THEMES@ above, grab the new one from the package and gzip it.
find . -type l -delete
# 20200407 bkw: makepkg's symlink search and doinst.sh creation doesn't # 20200407 bkw: makepkg's symlink search and doinst.sh creation doesn't
# scale well. This makes the build complete much faster, and create an # scale well. This makes the build complete much faster, and create an
# identical doinst.sh. # identical doinst.sh.
find . -type l \ #find . -type l \
-printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \ # -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \
sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh # sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE