--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gtkspellmm
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.0.3
+pkgrel=1
+pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget (C++ binding) (mingw-w64)"
+arch=('any')
+url="http://gtkspell.sourceforge.net/"
+license=("GPL 2")
+makedepends=("gtk-doc"
+ "${MINGW_PACKAGE_PREFIX}-gcc"
+ "${MINGW_PACKAGE_PREFIX}-pkg-config"
+ "${MINGW_PACKAGE_PREFIX}-vala"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "${MINGW_PACKAGE_PREFIX}-iso-codes"
+ "intltool")
+depends=("${MINGW_PACKAGE_PREFIX}-gtkspell3"
+ "${MINGW_PACKAGE_PREFIX}-gtkmm3")
+options=(!libtool strip staticlibs)
+source=(http://sourceforge.net/projects/gtkspell/files/${_realname}/${_realname}-${pkgver}.tar.gz)
+sha256sums=('f9dcc0991621c08e7a972f33487afd6b37491468f0b654f50c741a7e6d810624')
+
+prepare() {
+ cd ${_realname}-$pkgver
+
+ mm-common-prepare --copy --force "$srcdir"
+ autoreconf -fi
+}
+
+build() {
+ [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
+ mkdir -p "${srcdir}/build-${MINGW_CHOST}"
+ cd "${srcdir}/build-${MINGW_CHOST}"
+
+ mkdir -p doc/reference/html
+ cp -rf ../${_realname}-${pkgver}/doc/reference/html/* doc/reference/html
+
+ ../${_realname}-${pkgver}/configure \
+ --prefix=${MINGW_PREFIX} \
+ --build=${MINGW_CHOST} \
+ --host=${MINGW_CHOST} \
+ --enable-shared \
+ --disable-static \
+ --enable-gtk2
+ make
+}
+
+package() {
+ cd "${srcdir}/build-${MINGW_CHOST}"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}