From 5e523e50123152fd71f3e1b219ff0e4dd5222812 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 11 Apr 2022 22:07:18 -0400 Subject: system/gnome-commander: Fix icon and symlinks. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/gnome-commander/gnome-commander.SlackBuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'system/gnome-commander') diff --git a/system/gnome-commander/gnome-commander.SlackBuild b/system/gnome-commander/gnome-commander.SlackBuild index 52bd35eba2..209758e956 100644 --- a/system/gnome-commander/gnome-commander.SlackBuild +++ b/system/gnome-commander/gnome-commander.SlackBuild @@ -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 \ -- cgit v1.2.3