PKGBUILD 974 Bytes
Newer Older
1 2 3 4 5
# $Id$
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgbase=gtkmm3
pkgname=(gtkmm3 gtkmm3-docs)
AlmAck's avatar
AlmAck committed
6
pkgver=3.24.0
7 8 9 10 11 12 13
pkgrel=1
pkgdesc="C++ bindings for GTK+ 3"
url="http://www.gtkmm.org/"
arch=(x86_64)
license=(LGPL)
depends=(gtk3 pangomm atkmm)
makedepends=(git mm-common glibmm-docs cairomm-docs pangomm-docs atkmm-docs)
AlmAck's avatar
AlmAck committed
14
_commit=18a438b4c6d80b18d3a53b282dcec6e5dfcccbbf  # tags/3.24.0^0
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
source=("git+https://git.gnome.org/browse/gtkmm#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd gtkmm
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd gtkmm
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd gtkmm
  ./configure --prefix=/usr --enable-maintainer-mode
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package_gtkmm3() {
  cd gtkmm
  sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
  make DESTDIR="$pkgdir" install
}

package_gtkmm3-docs() {
  pkgdesc+=" (documentation)"
  depends=()

  cd gtkmm
  make -C docs DESTDIR="$pkgdir" install
}