archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gtkmm / trunk / PKGBUILD
blob66d3cef5a159b8e35d559053d83131abc3654d8e
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 pkgbase=gtkmm
5 pkgname=(gtkmm gtkmm-docs)
6 pkgver=2.24.5
7 pkgrel=4
8 epoch=1
9 pkgdesc="C++ bindings for GTK+ 2"
10 url="http://www.gtkmm.org/"
11 arch=(x86_64)
12 license=(LGPL)
13 depends=(gtk2 pangomm atkmm)
14 source=(https://ftp.gnome.org/pub/GNOME/sources/$pkgbase/2.24/$pkgbase-$pkgver.tar.xz)
15 sha256sums=('0680a53b7bf90b4e4bf444d1d89e6df41c777e0bacc96e9c09fc4dd2f5fe6b72')
17 build() {
18   cd $pkgbase-$pkgver
20   # glibmm 2.46 uses C++11 features
21   CXXFLAGS+=' -std=c++11'
23   ./configure --prefix=/usr
24   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
25   make
28 package_gtkmm() {
29   cd $pkgbase-$pkgver
30   sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
31   make DESTDIR="$pkgdir" install
34 package_gtkmm-docs() {
35   pkgdesc+=" (documentation)"
36   depends=()
38   cd $pkgbase-$pkgver
39   make -C docs DESTDIR="$pkgdir" install