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

Felix Yan felixonmars at archlinux.org
Sat May 16 10:11:17 UTC 2020


    Date: Saturday, May 16, 2020 @ 10:11:17
  Author: felixonmars
Revision: 384032

archrelease: copy trunk to staging-x86_64

Added:
  cairomm/repos/staging-x86_64/
  cairomm/repos/staging-x86_64/PKGBUILD
    (from rev 384031, cairomm/trunk/PKGBUILD)

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

Copied: cairomm/repos/staging-x86_64/PKGBUILD (from rev 384031, cairomm/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 10:11:17 UTC (rev 384032)
@@ -0,0 +1,47 @@
+# 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
+}



More information about the arch-commits mailing list