# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gtkmm3
pkgver=3.22.2
pkgrel=0
pkgdesc="C++ wrappers for GTK+"
url="http://gtkmm.sourceforge.net/"
arch="all"
license="LGPL"
options="!check"
makedepends="atkmm-dev gtk+3.0-dev glibmm-dev pangomm-dev intltool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gtkmm/${pkgver%.*}/gtkmm-$pkgver.tar.xz"
builddir="$srcdir/gtkmm-$pkgver"

build() {
	cd "$builddir"
	CXXFLAGS="$CXXFLAGS -std=c++11" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}
sha512sums="6e96b543e459481145ee0f56f31a7ad2466bd8ccdd2abf3205998aecede73d235149ca6e5ba6e8d20a4fd5345e310870d81ac2a716d4f78d1460ed685badbdc2  gtkmm-3.22.2.tar.xz"
