Example 003-DE build system: Mate

Arch based Porteus community project

Moderator: M. Eerie

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Example 003-DE build system: Mate

Post#16 by ncmprhnsbl » 04 Feb 2024, 07:12

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Example 003-DE build system: Mate

Post#17 by ncmprhnsbl » 04 Feb 2024, 08:47

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:
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Example 003-DE build system: Mate

Post#18 by Jack » 04 Feb 2024, 22:05

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.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Example 003-DE build system: Mate

Post#19 by ncmprhnsbl » 05 Feb 2024, 01:43

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.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Example 003-DE build system: Mate

Post#20 by Jack » 05 Feb 2024, 02:07

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
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Example 003-DE build system: Mate

Post#21 by Jack » 05 Feb 2024, 02:21

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]#
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Example 003-DE build system: Mate

Post#22 by M. Eerie » 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
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Example 003-DE build system: Mate

Post#23 by M. Eerie » 05 Feb 2024, 12:36

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"
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Example 003-DE build system: Mate

Post#24 by beny » 05 Feb 2024, 14:42

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

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Example 003-DE build system: Mate

Post#25 by M. Eerie » 05 Feb 2024, 16:41

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.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Example 003-DE build system: Mate

Post#26 by beny » 05 Feb 2024, 16:52


User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Example 003-DE build system: Mate

Post#27 by M. Eerie » 05 Feb 2024, 17:19

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
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Example 003-DE build system: Mate

Post#28 by beny » 05 Feb 2024, 17:36

ok, i can try to build it and make a package, i have to switch to arch..

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Example 003-DE build system: Mate

Post#29 by beny » 05 Feb 2024, 18:12

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

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Example 003-DE build system: Mate

Post#30 by Jack » 05 Feb 2024, 19:50

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?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply