[arch-commits] Commit in gtkmm3/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Jan Steffens heftig at archlinux.org
Mon Dec 14 00:28:41 UTC 2020


    Date: Monday, December 14, 2020 @ 00:28:40
  Author: heftig
Revision: 404297

archrelease: copy trunk to extra-x86_64

Added:
  gtkmm3/repos/extra-x86_64/PKGBUILD
    (from rev 404295, gtkmm3/trunk/PKGBUILD)
Deleted:
  gtkmm3/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   98 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 52 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-14 00:28:40 UTC (rev 404296)
+++ PKGBUILD	2020-12-14 00:28:40 UTC (rev 404297)
@@ -1,46 +0,0 @@
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-
-pkgbase=gtkmm3
-pkgname=(gtkmm3 gtkmm3-docs)
-pkgver=3.24.2
-pkgrel=2
-pkgdesc="C++ bindings for GTK+ 3"
-url="http://www.gtkmm.org/"
-arch=(x86_64)
-license=(LGPL)
-depends=(gtk3 pangomm atkmm)
-makedepends=(git mm-common glibmm-docs cairomm-docs pangomm-docs atkmm-docs)
-_commit=72c50bb8629558e1f0df3d86c16e4290cc94fd5e  # tags/3.24.2^0
-source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
-  cd gtkmm
-  git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
-  cd gtkmm
-  NOCONFIGURE=1 ./autogen.sh
-}
-
-build() {
-  cd gtkmm
-  ./configure --prefix=/usr --enable-maintainer-mode
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
-}
-
-package_gtkmm3() {
-  cd gtkmm
-  sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
-  make DESTDIR="$pkgdir" install
-}
-
-package_gtkmm3-docs() {
-  pkgdesc+=" (documentation)"
-  depends=()
-
-  cd gtkmm
-  make -C docs DESTDIR="$pkgdir" install
-}

Copied: gtkmm3/repos/extra-x86_64/PKGBUILD (from rev 404295, gtkmm3/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-14 00:28:40 UTC (rev 404297)
@@ -0,0 +1,52 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=gtkmm3
+pkgname=(gtkmm3 gtkmm3-docs)
+pkgver=3.24.3
+pkgrel=1
+pkgdesc="C++ bindings for GTK+ 3"
+url="https://www.gtkmm.org/"
+arch=(x86_64)
+license=(LGPL)
+depends=(gtk3 pangomm atkmm)
+makedepends=(git mm-common glibmm-docs cairomm-docs pangomm-docs atkmm-docs meson)
+checkdepends=(xorg-server-xvfb)
+options=(!emptydirs)
+_commit=a99220925b22a02d58e02fb1c5020d0c1d3ba389  # tags/3.24.3^0
+source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd gtkmm
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd gtkmm
+}
+
+build() {
+  arch-meson gtkmm build -D maintainer-mode=true
+  meson compile -C build
+}
+
+check() {
+  xvfb-run -s '-nolisten local' \
+    meson test -C build --print-errorlogs
+}
+
+package_gtkmm3() {
+  DESTDIR="$pkgdir" meson install -C build
+
+  mkdir -p docs/usr/share
+  mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share
+}
+
+package_gtkmm3-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+  options=(!strip)
+
+  mv docs/* "$pkgdir"
+}



More information about the arch-commits mailing list