# Maintainer: Jesus E. pkgname=gtk2mm _realpkgname=gtkmm pkgver=2.24.5 pkgrel=2 pkgdesc="C++ bindings for GTK+ 2" url='https://www.gtkmm.org/' arch=('i686' 'x86_64') license=('LGPL-2.1') depends=('gtk2' 'pangomm' 'atkmm') source=("https://ftp.gnome.org/pub/GNOME/sources/$_realpkgname/2.24/$_realpkgname-$pkgver.tar.xz") sha512sums=('c50e52830977c37181439f4b82a30ac8bead0cf9022d2bec8225f8dc33e08414f863bf67056e1938fae8f888c09a5a6d757acc011fa9331a78caa6bb626dd51e') build() { cd $_realpkgname-$pkgver # glibmm 2.46 uses C++11 features CXXFLAGS+=' -std=c++11' ./configure \ --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd $_realpkgname-$pkgver sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile make DESTDIR="$pkgdir" install make -C docs DESTDIR="$pkgdir" install install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" }