desktop/engrampa: Updated for version 1.28.2.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Johannes Schoepfer 2024-08-24 08:20:06 +07:00 committed by Willy Sudiarto Raharjo
parent 5a5946ed36
commit bd56423f8f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 37 additions and 22 deletions

View file

@ -27,7 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=engrampa
VERSION=${VERSION:-1.28.0}
VERSION=${VERSION:-1.28.2}
COMMIT_MATE_SUBMODULES=4074560e3642a53ace07b31baaf3f04c060dcd0b
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -77,6 +78,11 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
(
cd subprojects
tar vxf $CWD/mate-submodules-$COMMIT_MATE_SUBMODULES.tar.gz
mv mate-submodules-$COMMIT_MATE_SUBMODULES mate-submodules
)
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -84,27 +90,34 @@ 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 {} +
# If yelp is not present don't build Help-files, remove HelpContents
# menuitem and move HelpAbout menuitem into file-menu
if ! command -v yelp; then
sed -i "/subdir('help')/d" meson.build
sed -i src/ui/menus-toolbars.ui \
-e "/menu_icon_help/,+4d"
fi
# Autodetect caja extension
pkg-config libcaja-extension && CAJA="enable" || CAJA="disable"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-debug=no \
--disable-schemas-compile \
--enable-magic \
--disable-packagekit \
--${CAJA}-caja-actions \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
unshare -n meson .. \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
--prefix=/usr \
--sysconfdir=/etc \
-Db_lto=true \
-Dstrip=true
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -1,8 +1,10 @@
PRGNAM="engrampa"
VERSION="1.28.0"
VERSION="1.28.2"
HOMEPAGE="https://wiki.mate-desktop.org/mate-desktop/applications/engrampa/"
DOWNLOAD="https://pub.mate-desktop.org/releases/1.28/engrampa-1.28.0.tar.xz"
MD5SUM="06673c95793c822486f2a0fa74fb2651"
DOWNLOAD="https://pub.mate-desktop.org/releases/1.28/engrampa-1.28.2.tar.xz \
https://github.com/mate-desktop/mate-submodules/archive/4074560/mate-submodules-4074560e3642a53ace07b31baaf3f04c060dcd0b.tar.gz"
MD5SUM="5a9e58842f019eddaa30d9fa85c7e957 \
548167f5f5a3c9785150a582e043b06f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""