summaryrefslogtreecommitdiff
path: root/graphics/jpegoptim
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-09 17:09:27 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:11 +0700
commit91eca18200eb52c6c6ba982ec4fc5b3234d9dae9 (patch)
treee7c543bf49854ce548e63fd61640f7fa86cc4523 /graphics/jpegoptim
parent52adb0d46190620889e0628c6ffa7415696a21dc (diff)
downloadslackbuilds-91eca18200eb52c6c6ba982ec4fc5b3234d9dae9.tar.gz
graphics/jpegoptim: Expand README & slack-desc.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/jpegoptim')
-rw-r--r--graphics/jpegoptim/README8
-rw-r--r--graphics/jpegoptim/jpegoptim.SlackBuild38
-rw-r--r--graphics/jpegoptim/slack-desc12
3 files changed, 22 insertions, 36 deletions
diff --git a/graphics/jpegoptim/README b/graphics/jpegoptim/README
index 7d81291d04..2ef1e6ceac 100644
--- a/graphics/jpegoptim/README
+++ b/graphics/jpegoptim/README
@@ -1 +1,7 @@
-jpegoptim - utility to optimize/compress JPEG files
+jpegoptim (utility to optimize/compress JPEG files)
+
+jpegoptim is used to optimize/compress jpeg files. It supports
+lossless optimization (based on optimizing the Huffman tables) and
+so called "lossy" optimization where in addition to optimizing the
+Huffman tables, the user can specify an upper limit for image quality,
+or a target file size.
diff --git a/graphics/jpegoptim/jpegoptim.SlackBuild b/graphics/jpegoptim/jpegoptim.SlackBuild
index 7a3777c494..2365eadabc 100644
--- a/graphics/jpegoptim/jpegoptim.SlackBuild
+++ b/graphics/jpegoptim/jpegoptim.SlackBuild
@@ -2,28 +2,14 @@
# Slackware build script for jpegoptim
-# Originally written by:
-# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
+# Originally written Ryan P.C. McQuen.
+# Now maintained by B. Watson <yalhcru@gmail.com>.
-# Now maintained by B. Watson (yalhcru@gmail.com)
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version, with the following exception:
-# the text of the GPL license may be omitted.
-
-# This program is distributed in the hope that it will be useful, but
-# without any warranty; without even the implied warranty of
-# merchantability or fitness for a particular purpose. Compiling,
-# interpreting, executing or merely reading the text of the program
-# may result in lapses of consciousness and/or very being, up to and
-# including the end of all existence and the Universe as we know it.
-# See the GNU General Public License for more details.
-
-# You may have received a copy of the GNU General Public License along
-# with this program (most likely, a file named COPYING). If not, see
-# <https://www.gnu.org/licenses/>.
+# 20210909 bkw: BUILD=2
+# - relicense as WTFPL, with permission from original author.
+# - expand README and slack-desc.
# 20180612 bkw: update for v1.4.6.
@@ -36,7 +22,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jpegoptim
VERSION=${VERSION:-1.4.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -48,9 +34,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
@@ -83,11 +66,8 @@ rm -rf $PRGNAM-RELEASE.$VERSION
tar xvf $CWD/$PRGNAM-RELEASE.$VERSION.tar.gz
cd $PRGNAM-RELEASE.$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
diff --git a/graphics/jpegoptim/slack-desc b/graphics/jpegoptim/slack-desc
index 17bc00e27f..6a2f7a4951 100644
--- a/graphics/jpegoptim/slack-desc
+++ b/graphics/jpegoptim/slack-desc
@@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-jpegoptim: jpegoptim (optimize/compress JPEGs)
+jpegoptim: jpegoptim (utility to optimize/compress JPEG files)
jpegoptim:
-jpegoptim: jpegoptim is a JPEG optimizer/compressor
+jpegoptim: jpegoptim is used to optimize/compress jpeg files. It supports
+jpegoptim: lossless optimization (based on optimizing the Huffman tables) and
+jpegoptim: so called "lossy" optimization where in addition to optimizing the
+jpegoptim: Huffman tables, the user can specify an upper limit for image quality,
+jpegoptim: or a target file size.
jpegoptim:
jpegoptim:
jpegoptim:
jpegoptim:
-jpegoptim: https://github.com/tjko/jpegoptim
-jpegoptim:
-jpegoptim:
-jpegoptim: