summaryrefslogtreecommitdiff
path: root/system/gnome-commander/gnome-commander.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-11 22:07:18 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:21 +0700
commit5e523e50123152fd71f3e1b219ff0e4dd5222812 (patch)
tree7562c08dba7d6d650c480b5f06b34a67a50e4663 /system/gnome-commander/gnome-commander.SlackBuild
parent93ec73861ad755c681d581d05413d20997b96b9c (diff)
downloadslackbuilds-5e523e50123152fd71f3e1b219ff0e4dd5222812.tar.gz
system/gnome-commander: Fix icon and symlinks.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gnome-commander/gnome-commander.SlackBuild')
-rw-r--r--system/gnome-commander/gnome-commander.SlackBuild15
1 files changed, 12 insertions, 3 deletions
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 \