development/meld3: Updated for version 3.22.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-09-11 07:50:40 +07:00
parent e75d9a5a6c
commit 41203c988b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 21 additions and 12 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for meld3
# Copyright 2014-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2014-2022 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=meld3
SRCNAM=meld
VERSION=${VERSION:-3.20.4}
VERSION=${VERSION:-3.22.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -39,9 +39,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
@ -80,14 +77,26 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py install --root=$PKG
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson .. \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
--prefix=/usr \
--sysconfdir=/etc \
-Dstrip=true
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/doc/$SRCNAM-$VERSION/* $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/doc/
mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
rm -f $PKG/usr/share/glib-2.0/schemas/gschemas.compiled

View file

@ -1,8 +1,8 @@
PRGNAM="meld3"
VERSION="3.20.4"
VERSION="3.22.0"
HOMEPAGE="http://meldmerge.org/"
DOWNLOAD="https://download.gnome.org/sources/meld/3.20/meld-3.20.4.tar.xz"
MD5SUM="318b98861d546526fc122dea9dc90257"
DOWNLOAD="https://download.gnome.org/sources/meld/3.22/meld-3.22.0.tar.xz"
MD5SUM="c32fa8675137e0d0c7334c4fc2de6114"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""