[arch-commits] Commit in glibmm/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Wed Mar 18 17:27:17 UTC 2020


    Date: Wednesday, March 18, 2020 @ 17:27:17
  Author: heftig
Revision: 377868

2.64.0-1

Modified:
  glibmm/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 17:06:42 UTC (rev 377867)
+++ PKGBUILD	2020-03-18 17:27:17 UTC (rev 377868)
@@ -3,7 +3,7 @@
 
 pkgbase=glibmm
 pkgname=(glibmm glibmm-docs)
-pkgver=2.62.0
+pkgver=2.64.0
 pkgrel=1
 pkgdesc="C++ bindings for GLib"
 url="https://www.gtkmm.org/"
@@ -10,8 +10,10 @@
 arch=(x86_64)
 license=(LGPL)
 depends=(glib2 libsigc++)
-makedepends=(git mm-common perl-xml-parser clang)
-_commit=ceff460bbfbca3acf60e6d35cf01961ff988177c  # tags/2.62.0^0
+makedepends=(git mm-common perl-xml-parser clang meson)
+checkdepends=(glib-networking)
+options=(!emptydirs)
+_commit=5e4b8f37de7110f4905ca11961dfe372151df095  # tags/2.64.0^0
 source=("git+https://gitlab.gnome.org/GNOME/glibmm.git#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -22,26 +24,28 @@
 
 prepare() {
   cd $pkgbase
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgbase
-  ./configure --prefix=/usr --enable-maintainer-mode
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  arch-meson $pkgbase build -D maintainer-mode=true
+  ninja -C build
 }
 
+check() {
+  meson test -C build --print-errorlogs
+}
+
 package_glibmm() {
-  cd $pkgbase
-  sed -i -e '/^doc_subdirs/s/^/#/' Makefile
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" meson install -C build
+
+  mkdir -p docs/usr/share
+  mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share
 }
 
 package_glibmm-docs() {
   pkgdesc+=" (documentation)"
   depends=()
+  options=(!strip)
 
-  cd $pkgbase
-  make -C docs DESTDIR="$pkgdir" install
+  mv docs/* "$pkgdir"
 }



More information about the arch-commits mailing list