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

Jan Steffens heftig at archlinux.org
Wed Apr 5 13:54:39 UTC 2017


    Date: Wednesday, April 5, 2017 @ 13:54:37
  Author: heftig
Revision: 292132

1.12.2-2

Modified:
  cairomm/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++++++++++++++++++++-----------------
 1 file changed, 26 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-04-05 13:35:24 UTC (rev 292131)
+++ PKGBUILD	2017-04-05 13:54:37 UTC (rev 292132)
@@ -1,39 +1,48 @@
 # $Id$
-# Maintainer: Kevin <kevin at archlinux.org>
+# Contributor: Kevin <kevin at archlinux.org>
 # Contributor: criminy <criminy at gmail.com>
 
-pkgname=cairomm
+pkgbase=cairomm
+pkgname=(cairomm cairomm-docs)
 pkgver=1.12.2
-pkgrel=1
-pkgdesc="C++ bindings to Cairo vector graphics library"
-arch=('i686' 'x86_64')
-url="https://www.cairographics.org"
-license=('LGPL' 'MPL')
-depends=('cairo' 'libsigc++')
-makedepends=('pkgconfig' git mm-common)
+pkgrel=2
+pkgdesc="C++ bindings for Cairo"
+url="https://www.cairographics.org/cairomm/"
+arch=(i686 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")
-options=('!emptydirs')
 sha256sums=('SKIP')
 
 pkgver() {
-  cd $pkgname
+  cd $pkgbase
   git describe --tags | sed 's/^v//;s/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd $pkgbase
   NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd "${srcdir}/$pkgname"
-  ./configure --prefix=/usr
+  cd $pkgbase
+  ./configure --prefix=/usr --enable-maintainer-mode
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
-package() {
-  cd "${srcdir}/$pkgname"
-  make DESTDIR="${pkgdir}" install
+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