system/gnome-commander: Fix icon and symlinks.

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

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-04-11 22:07:18 -04:00 committed by Willy Sudiarto Raharjo
parent 93ec73861a
commit 5e523e5012
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220411 bkw: Modified by SlackBuilds.org, BUILD=2:
# - fix icon sizes.
# - relative symlinks in /usr/share/help.
# 20220211 bkw: Modified by SlackBuilds.org
# - updated for latest release, 1.14.0, since the old version wouldn't
# build on 15.0.
@ -31,7 +34,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnome-commander
VERSION=${VERSION:-1.14.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -101,10 +104,16 @@ for px in 16 32 48 64 128; do
size=${px}x${px}
dir=$PKG/usr/share/icons/hicolor/$size/apps
mkdir -p $dir
convert pixmaps/gnome-commander.svg $dir/$PRGNAM.png
convert -geometry $size pixmaps/gnome-commander.svg $dir/$PRGNAM.png
done
ln -s ../icons/hicolor/48x48/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# 20220411 bkw: convert absolute symlinks to relative. ugh.
for i in $( find $PKG/usr/share/help/?? -type l -lname /usr/share/help/C/\* ); do
rm -f $i
ln -s ../../../C/$PRGNAM/figures/$( basename $i ) $i
done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BUGS COPYING ChangeLog README TODO \