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

Jan Steffens heftig at archlinux.org
Fri May 21 17:29:12 UTC 2021


    Date: Friday, May 21, 2021 @ 17:29:12
  Author: heftig
Revision: 415833

archrelease: copy trunk to extra-x86_64

Added:
  cairomm/repos/extra-x86_64/PKGBUILD
    (from rev 415831, cairomm/trunk/PKGBUILD)
Deleted:
  cairomm/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   98 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 51 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-21 17:29:12 UTC (rev 415832)
+++ PKGBUILD	2021-05-21 17:29:12 UTC (rev 415833)
@@ -1,47 +0,0 @@
-# Contributor: Kevin <kevin at archlinux.org>
-# Contributor: criminy <criminy at gmail.com>
-
-pkgbase=cairomm
-pkgname=(cairomm cairomm-docs)
-pkgver=1.12.2
-pkgrel=4
-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")
-sha256sums=('SKIP')
-
-pkgver() {
-  cd $pkgbase
-  git describe --tags | sed 's/^v//;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
-}
-
-package_cairomm() {
-  cd $pkgbase
-  sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
-  make DESTDIR="$pkgdir" install
-}
-
-package_cairomm-docs() {
-  pkgdesc+=" (documentation)"
-  depends=()
-
-  cd $pkgbase
-  make -C docs DESTDIR="$pkgdir" install
-}

Copied: cairomm/repos/extra-x86_64/PKGBUILD (from rev 415831, cairomm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-21 17:29:12 UTC (rev 415833)
@@ -0,0 +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.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 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/-/+/g'
+}
+
+prepare() {
+  cd $pkgbase
+}
+
+build() {
+  arch-meson $pkgbase build -D maintainer-mode=true
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package_cairomm() {
+  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)
+
+  mv docs/* "$pkgdir"
+}



More information about the arch-commits mailing list