aboutsummaryrefslogtreecommitdiff
path: root/development/cppcheck
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-06 16:28:29 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-06 16:28:29 -0400
commit4066051cb5234c57ad676996a31f0765e8fa0f58 (patch)
treedba9e8239f05ca7acd41a12c2fc0fef9d513795c /development/cppcheck
parent830a31bbbbd8b42ef562fe225f8620e906887806 (diff)
development/cppcheck: Fix icon size (65x65 => 64x64).
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/cppcheck')
-rw-r--r--development/cppcheck/cppcheck.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/development/cppcheck/cppcheck.SlackBuild b/development/cppcheck/cppcheck.SlackBuild
index 8f973c165ca8e..92e8f152b7ca5 100644
--- a/development/cppcheck/cppcheck.SlackBuild
+++ b/development/cppcheck/cppcheck.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220406 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - make 64x64 icon actually 64x64. wish I'd caught this yesterday.
# 20220405 bkw: Modified by SlackBuilds.org, BUILD=2:
# - add doinst.sh, because we have icons and a .desktop.
# - install translations (*.qm) in usr/share/Cppcheck/lang/, not /usr/bin.
@@ -30,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cppcheck
VERSION=${VERSION:-2.6}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -104,6 +106,11 @@ cd build
make install/strip DESTDIR=$PKG
cd ..
+# 20220406 bkw: the "64x64" icon is really 65x65, overwrite with correct size.
+convert -background none -geometry 64x64! -gravity center \
+ $PKG/usr/share/icons/hicolor/scalable/apps/cppcheck-gui.svg \
+ $PKG/usr/share/icons/hicolor/64x64/apps/cppcheck-gui.png
+
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION