🔒 Repository is read-only – file editing is disabled.

recipes/utils/glibmm/PAGBUILD.yaml main

40 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940
pkgname: glibmm
pkgver: '2.66.10'
pkgrel: '1'
pkgdesc: 'gtkmm is the official C++ interface for the popular GUI library GTK+.'
url: 'https://gitlab.gnome.org/GNOME/glibmm'
arch: x86_64
depends: []
makedepends:
- meson
- ninja
- 'libsigc++'
- glib
- 'perl-xml-parser'
- 'mm-common'

source:
- 'https://gitlab.gnome.org/GNOME/glibmm/-/archive/${pkgver}/glibmm-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  cd glibmm-${pkgver}
  # glib 2.88 deklaruje GDBusActionGroupClass (G_DECLARE_FINAL_TYPE) -> alias giomm koliduje
  sed -i '/using GDBusActionGroupClass = struct _GDBusActionGroupClass;/d' gio/src/dbusactiongroup.hg
  meson setup --prefix /usr --buildtype plain --libexecdir lib --sbindir bin -D b_pie=true -Dmaintainer-mode=true -Dbuild-examples=false . builddir
  meson compile -C builddir

package: |
  cd glibmm-${pkgver}
  DESTDIR="${PKGDIR}" meson install -C builddir

update: |
  local latest lastversion url
  url="https://download.gnome.org/sources/${pkgname}"
  latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url/?C=N\;O=D|grep [0-9]/$|head -1`"
  lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
  $latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
  echo "$lastversion"