--- /dev/null
+--- ./libgdict/gdict-client-context.c.orig 2015-03-22 13:10:11.000000000 +0100
++++ ./libgdict/gdict-client-context.c 2015-04-06 18:57:55.314595800 +0200
+@@ -36,10 +36,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>
+-#include <sys/socket.h>
+-#include <netinet/in.h>
+-#include <arpa/inet.h>
+-#include <netdb.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #ifdef HAVE_UNISTD_H
+@@ -49,6 +45,9 @@
+ #include <glib.h>
+ #include <glib/gi18n-lib.h>
+
++#include <winsock2.h>
++#include <windows.h>
++
+ #include "gdict-context-private.h"
+ #include "gdict-context.h"
+ #include "gdict-client-context.h"
+--- ./libgdict/gdict-utils.c.orig 2015-03-22 13:10:11.000000000 +0100
++++ ./libgdict/gdict-utils.c 2015-04-06 18:52:11.888163700 +0200
+@@ -25,10 +25,6 @@
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <sys/types.h>
+-#include <sys/socket.h>
+-#include <netinet/in.h>
+-#include <arpa/inet.h>
+-#include <netdb.h>
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gnome-dictionary
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.16.0
+pkgrel=1
+arch=('any')
+pkgdesc="GNOME PO files editor (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+ "${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+ "${MINGW_PACKAGE_PREFIX}-vala"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "gtk-doc")
+license=("LGPL 2.1")
+url="http://www.gnome.org"
+install=${_realname}-${CARCH}.install
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
+ 001-win.patch)
+sha256sums=('46807d17a089e8308b0089e39b83aae01a186921c893f3a50ff1b51d28443dcb'
+ 'SKIP')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+ autoreconf -f -i
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ mkdir -p docs/reference/gdict/html
+ cp -rf ../${_realname}-${pkgver}/docs/reference/gdict/html/* docs/reference/gdict/html
+
+ ../${_realname}-${pkgver}/configure \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST} \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib
+
+ make V=1
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.docs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.docs"
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.libs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.libs"
+}