[Slackbuilds-users] slackbuilds up for grabs

Franzen slackbuilds at schoepfer.info
Mon May 8 04:29:36 UTC 2023


> As it happens I recently included it in Slint, upgraded:
> http://slackware.uk/slint/x86_64/slint-15.0/source/Qogir-icon-theme/

Thanks!
The find -L ... on this sources takes forever on my old hardware, and 
spits thousand
"chmod: cannot operate on dangling symlink 
'./links/22/actions/fileview-preview.svg"
I changed it to
chmod -R u+w,go-w,a+rX-st .
and it's ready under one second.

There are also some duplicate files(not much, but anyway), to replace 
them by symlinks i added:
LASTSIZE=x
find $PKG -type f -printf '%s %p\n' | sort -n |
while read -r SIZE FILE; do
   # symlinks alse need some bytes, don't link under 10 bytes
   if [ "$SIZE" -gt 10 -a "$SIZE" == "$LASTSIZE" ]; then
     if [ "$(sha512sum $FILE | cut -d' ' -f1)" \
       == "$(sha512sum $LASTFILE | cut -d' ' -f1)" ] ; then
       ln -srf $FILE $LASTFILE
     fi
   fi
   LASTSIZE="$SIZE"; LASTFILE="$FILE"
done

Johannes


More information about the SlackBuilds-users mailing list