--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gtksourceviewmm
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.12.0
+pkgrel=1
+arch=('any')
+pkgdesc="C++ bindings for GtkSourceView (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-gtksourceview3"
+ "${MINGW_PACKAGE_PREFIX}-gtkmm3"
+ "${MINGW_PACKAGE_PREFIX}-cairomm"
+ "${MINGW_PACKAGE_PREFIX}-pangomm")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+ "gtk-doc"
+ "${MINGW_PACKAGE_PREFIX}-pkg-config")
+options=('!strip' 'debug' 'staticlibs')
+license=("LGPL 2.1")
+url="http://www.gnome.org/"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:4}/${_realname}-$pkgver.tar.xz)
+sha256sums=('73939031bcc60e6ad31a315ec84b132deba15e5732de16e75fe424a619267ace')
+
+prepare() {
+ cd ${_realname}-${pkgver}
+
+ autoreconf -fi
+}
+
+build() {
+ [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ mkdir -p docs/reference/html
+ cp -rf ../${_realname}-${pkgver}/docs/reference/html/* docs/reference/html
+
+ ../${_realname}-${pkgver}/configure \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST} \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib
+ make
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}