diff options
Diffstat (limited to 'games/img2xterm')
-rw-r--r-- | games/img2xterm/README | 6 | ||||
-rw-r--r-- | games/img2xterm/img2xterm.SlackBuild | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/games/img2xterm/README b/games/img2xterm/README index b52db54941ef4..fd49dacaaecdd 100644 --- a/games/img2xterm/README +++ b/games/img2xterm/README @@ -9,9 +9,9 @@ No checking is done on the terminal size. Each character cell in the terminal gets a 2x2 block of pixels, so if your terminal is 80x25, the largest image it can display is 160x50 pixels. -This is known to work with xterm, konsole, rxvt-unicode and xfce4-terminal -from Slackware 14.2; and st from SlackBuilds.org. Plain rxvt doesn't -seem to support 256-color mode, so it won't work there. +This is known to work with xterm, konsole, rxvt-unicode and +xfce4-terminal from Slackware 14.2; and st from SlackBuilds.org. Plain +rxvt doesn't seem to support 256-color mode, so it won't work there. Sadly, it doesn't work in the Linux console either. The package includes the GIMP palette mentioned in the README.md, and diff --git a/games/img2xterm/img2xterm.SlackBuild b/games/img2xterm/img2xterm.SlackBuild index 1bc5a92ae6d23..d2911a026877b 100644 --- a/games/img2xterm/img2xterm.SlackBuild +++ b/games/img2xterm/img2xterm.SlackBuild @@ -22,9 +22,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -60,7 +57,7 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# Fix an header path for imagemagick >= 7.x +# Fix a header path for imagemagick >= 7.x sed -i "s|wand/MagickWand|MagickWand/MagickWand|" img2xterm.c # Hardcoded stuffs. The LN line turns the absolute symlinks into @@ -78,7 +75,7 @@ make install PREFIX=$PKG/usr # Include the stuff from extra/. To do this, we have to find out the # version of gimp to install the palette file for. case "${GIMPVER:-auto}" in - auto) GIMPVER=$(/bin/ls -d /usr/share/gimp/[0-9]*/ | sort -V | cut -d/ -f5) ;; + auto) GIMPVER=$(/bin/ls -d /usr/share/gimp/[0-9]*/ | sort -V | head -1 | cut -d/ -f5) ;; *) GIMPVER=$(echo $GIMPVER | cut -d. -f1,2) ;; esac |