development/cppcheck: Fix icon size (65x65 => 64x64).

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-04-06 16:28:29 -04:00
parent 830a31bbbb
commit 4066051cb5

View file

@ -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