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

Jan Steffens heftig at archlinux.org
Fri May 21 17:28:26 UTC 2021


    Date: Friday, May 21, 2021 @ 17:28:26
  Author: heftig
Revision: 415830

1.14.3-1

Modified:
  cairomm/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-21 17:25:29 UTC (rev 415829)
+++ PKGBUILD	2021-05-21 17:28:26 UTC (rev 415830)
@@ -1,47 +1,51 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: Kevin <kevin at archlinux.org>
 # Contributor: criminy <criminy at gmail.com>
 
 pkgbase=cairomm
 pkgname=(cairomm cairomm-docs)
-pkgver=1.12.2
-pkgrel=4
+pkgver=1.14.3
+pkgrel=1
 pkgdesc="C++ bindings for Cairo"
 url="https://www.cairographics.org/cairomm/"
 arch=(x86_64)
 license=(LGPL MPL)
 depends=(cairo libsigc++)
-makedepends=(git mm-common)
-_commit=e9ef515b7b8db5b4f024ddfefe5dfc03f2b8ccea  # tags/v1.12.2^0
-source=("git+https://anongit.freedesktop.org/git/cairomm#commit=$_commit")
+makedepends=(git mm-common meson)
+options=(!emptydirs)
+_commit=77a0bac11cc16c66d5292bb2546c1dca3525c918  # tags/1.14.3^0
+source=("git+https://gitlab.freedesktop.org/cairo/cairomm.git#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
   cd $pkgbase
-  git describe --tags | sed 's/^v//;s/-/+/g'
+  git describe --tags | sed 's/-/+/g'
 }
 
 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
+  meson compile -C build
 }
 
+check() {
+  meson test -C build --print-errorlogs
+}
+
 package_cairomm() {
-  cd $pkgbase
-  sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
-  make DESTDIR="$pkgdir" install
+  meson install -C build --destdir "$pkgdir"
+
+  mkdir -p docs/usr/share
+  mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share
 }
 
 package_cairomm-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