Page 2 of 4

Example 003-DE build system: Mate

Posted: 04 Feb 2024, 07:12
by ncmprhnsbl
M. Eerie wrote:
04 Feb 2024, 00:43
Hmmmm. I didn't check that one until you reminded me. Logically zenity doesn't work, and I can't find zenity-light. But I do remember that you already pointed me once in the direction of the yad-light alternative. I don't know if it will still be active. Anyway, it needs to be compiled with devel module via trizen or other AUR helper.
after a little look at it, the trick at this point is build/use an older version circa 3.41(or actually 3.44.3) with -Dwebkitgtk=false build option. a matter of adjusting a PKGBUILD. (i'll be looking into this for cinnamon. i can share my existing package if you like)
compilation directly with makepkg for these type of custom packages is just as easy too.
M. Eerie wrote:
04 Feb 2024, 00:43
It would be nice to include 7z v. 23-10
i guess you mean v23.01 which is called 7-zip-full in the AUR?
and it looks like for engrampa to use it, a git build is required, or least 1.27 (arch packages 1.26) (like some other software the mate project designates version_ending_in_odd_numbers as the development or unstable releases)
again, a matter of adjusting the official PKGBUILD.
edit: although i'm not sure that'll work, it might need p7zip

Example 003-DE build system: Mate

Posted: 04 Feb 2024, 08:47
by ncmprhnsbl
here's a (untested) 'zenity-light' 3.44.3 PKGBUILD:

Code: Select all

# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=zenity-light
_pkgname=zenity
pkgver=3.44.3
pkgrel=1
pkgdesc="Display graphical dialog boxes from shell scripts"
url="https://gitlab.gnome.org/GNOME/zenity"
arch=(x86_64)
license=(LGPL)
depends=(
  gtk3
  libnotify
)
makedepends=(
  git
  meson
  yelp-tools
)
optdepends=('perl: gdialog wrapper')
_commit=c945c57c7df46a512173b8a725162700b2c442b1  # tags/3.44.3
source=("git+https://gitlab.gnome.org/GNOME/zenity.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd zenity
  git describe --tags | sed 's/-real//;s/[^-]*-g/r&/;s/-/+/g'
}

prepare() {
  cd zenity
}

build() {
  local meson_options=(
    -D libnotify=true
    -D webkitgtk=false
  )

  arch-meson zenity build "${meson_options[@]}"
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  meson install -C build --destdir "$pkgdir"
}

# vim:set sw=2 sts=-1 et:

Example 003-DE build system: Mate

Posted: 04 Feb 2024, 22:05
by Jack
Hope someone will help me out. I ran my Mate today and this what I found today.

Image

I didn't see it when I made the post the other day when I made it a week ago. Hope you understand this message.

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 01:43
by ncmprhnsbl
Jack wrote:
04 Feb 2024, 22:05
Hope you understand this message.
looks like you're using adwaita icon theme. (or maybe not by the look of those folders)
1. is that the icon theme you want to use?
2. the icon theme you use will need a link to /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg to have an icon for modules
eg.for adwaita (as root)

Code: Select all

# cd /usr/share/icons/Adwaita/scalable/mimetypes
# ln -s /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg  application-x-xzm.svg
# cd /usr/share/icons/Adwaita
gtk-update-icon-cache -f /usr/share/icons/Adwaita
this might work for other icon sets that inherit some icons from adwaita, too.

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 02:07
by Jack
Can I uninstall these 2 modules? If so what is the command line? If not I will try what you posted.

Code: Select all

adwaita-cursors-45.0-1
adwaita-icon-theme-45.0-1

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 02:21
by Jack
ncmprhnsbl wrote:
05 Feb 2024, 01:43
gtk-update-icon-cache -f /usr/share/icons/Adwait
I try this but it didn't work. And I did it su and toor.

Code: Select all

[porteus guest]# gtk-update-icon-cache -f /usr/share/icons/Adwaita
gtk-update-icon-cache: Cache file created successfully.
[porteus guest]#

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 09:10
by M. Eerie
Most icon themes inherits the hicolor standard theme, so let's try the same but with the hicolor fallback icons:

# cd /usr/share/icons/hicolor/scalable/mimetypes
# ln -s /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg application-x-xzm.svg

As a last option:
# ln -s /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg /usr/share/icons/application-x-xzm.svg

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 12:36
by M. Eerie
ncmprhnsbl wrote:
04 Feb 2024, 08:47
-D webkit2gtk=false
This results in an error.

A full log can be found at /home/guest/Desktop/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
Aborting...


meson-log.txt:

Code: Select all

Build started at 2024-02-05T13:27:37.442206
Main binary: /bin/python
Build Options: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dlibnotify=true -Dwebkit2gtk=false -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuildtype=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 1.3.1
Source dir: /home/guest/Desktop/src/zenity
Build dir: /home/guest/Desktop/src/build
Build type: native build

zenity/meson.build:1:0: ERROR: Unknown options: "webkit2gtk"

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 14:42
by beny
hi M.Eerie, nemesis it have the arch repositories available so why don't pick zenity from the arch repo: or have i missed something...
# Generated by makepkg 6.0.2
# using fakeroot version 1.32.2
pkgname = zenity
pkgbase = zenity
pkgver = 4.0.1-1
pkgdesc = Display graphical dialog boxes from shell scripts
url = https://gitlab.gnome.org/GNOME/zenity
builddate = 1704419042
packager = Jan Alexander Steffens (heftig) <heftig@archlinux.org>
size = 5625412
arch = x86_64
license = LGPL-2.1-or-later
depend = libadwaita
makedepend = git
makedepend = help2man
makedepend = meson
makedepend = util-linux
makedepend = yelp-tools

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 16:41
by M. Eerie
beny wrote:
05 Feb 2024, 14:42
depend = libadwaita
Hi beny.

See the first post in the thread.

"So I don't want zenity pulling in gtk4 and all it's deps(that get's used by nothing) ... "

zenity 4.0.1-1 depends on libadwaita that in turn depends on gtk-4... Just by installing zenity the resulting module size is more than doubled.

My goal is to build a "mate-short" version.

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 16:52
by beny

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 17:19
by M. Eerie
I don't know how I could link it to the zenity-light PKGBUILD posted by ncmprhnsbl.

My knowledge is very limited when it comes to compiling packages.

I did see that there is this version of zenity that avoids the fat dependency: webkit2gtk
https://aur.archlinux.org/packages/zenity-git

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 17:36
by beny
ok, i can try to build it and make a package, i have to switch to arch..

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 18:12
by beny
ok, try if it is useful for you: https://www.mediafire.com/folder/j840djsf33b1g/adw-gtk3 inside two files
in nemesis seem that packages work, in setting we have only gtk3 option to adwaita

Example 003-DE build system: Mate

Posted: 05 Feb 2024, 19:50
by Jack
M. Eerie wrote:
05 Feb 2024, 09:10
Most icon themes inherits the hicolor standard theme, so let's try the same but with the hicolor fallback icons:

# cd /usr/share/icons/hicolor/scalable/mimetypes
# ln -s /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg application-x-xzm.svg

As a last option:
# ln -s /usr/share/icons/kora/mimetypes/scalable/application-x-xzm.svg /usr/share/icons/application-x-xzm.svg
Not sure what you want me to do?