pkgbase=glibmm pkgname=('glibmm' 'glibmm-docs') pkgver=2.56.0+11+g8dc03d66 pkgrel=1 pkgdesc="C++ bindings for GLib" arch=('x86_64') license=('LGPL') depends=(glib2 libsigc++) makedepends=(git mm-common perl-xml-parser clang) _commit=8dc03d662dd5b807d921a6249152aa449971b27f # tags/2.56.0^0 source=("git+https://git.gnome.org/browse/glibmm#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgbase 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 } package_glibmm() { cd $pkgbase sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile make DESTDIR="$pkgdir" install } package_glibmm-docs() { pkgdesc+=" (documentation)" depends=() cd $pkgbase make -C docs DESTDIR="$pkgdir" install }