--- /dev/null
+--- ./configure.ac.orig 2013-04-16 09:59:57.000000000 +0200
++++ ./configure.ac 2015-05-09 23:06:38.721990600 +0200
+@@ -128,6 +128,9 @@
+ dnl ========================GIO================================================
+ PKG_CHECK_MODULES(GIO, gio-2.0)
+
++dnl ========================GMODULE================================================
++PKG_CHECK_MODULES(GMODULE, gmodule-no-export-2.0)
++
+ dnl =============================Modules=======================================
+ dnl ==== canvas ====
+ AC_ARG_ENABLE(canvas-module,
+--- ./libseed/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./libseed/Makefile.am 2015-05-09 23:06:38.727991000 +0200
+@@ -33,10 +33,12 @@
+ $(SEED_DEBUG_CFLAGS) \
+ $(SEED_PROFILE_CFLAGS) \
+ $(FFI_CFLAGS) \
++ $(GMODULE_CFLAGS) \
+ -DGOBJECT_INTROSPECTION_VERSION=$(GOBJECT_INTROSPECTION_VERSION)
+
+ libseed@SEED_GTK_VERSION@_la_LDFLAGS = \
+- $(FFI_LDFLAGS)
++ $(FFI_LDFLAGS) \
++ -no-undefined
+
+ libseed@SEED_GTK_VERSION@_la_LIBADD = \
+ $(GOBJECT_INTROSPECTION_LIBS) \
+@@ -44,6 +46,7 @@
+ $(SEED_PROFILE_LIBS) \
+ $(SEED_OSX_LIBS) \
+ $(GIO_LIBS) \
++ $(GMODULE_LIBS) \
+ $(FFI_LIBS) -ldl
+
+ seedheaders_HEADERS = seed.h seed-debug.h seed-module.h
+--- ./libseed/seed-engine.c.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./libseed/seed-engine.c 2015-05-09 23:06:38.754991500 +0200
+@@ -21,7 +21,6 @@
+ #include "seed-path.h"
+
+ #include <sys/types.h>
+-#include <sys/wait.h>
+ #include <stdarg.h>
+ #include <string.h>
+ #include <pthread.h>
+--- ./libseed/seed-importer.c.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./libseed/seed-importer.c 2015-05-09 23:06:38.761993200 +0200
+@@ -17,6 +17,8 @@
+ * Copyright (C) Robert Carr 2009 <carrr@rpi.edu>
+ */
+
++#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
++
+ #include <gio/gio.h>
+ #include <string.h>
+ #include <stdlib.h>
+--- ./Makefile.am.orig 2015-05-09 23:13:57.741040300 +0200
++++ ./Makefile.am 2015-05-09 23:14:00.415360200 +0200
+@@ -7,8 +7,7 @@
+ src \
+ extensions \
+ modules \
+- tests \
+- doc
++ tests
+
+ doc_DATA = \
+ README \
+--- ./modules/cairo/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/cairo/Makefile.am 2015-05-09 23:06:38.766992800 +0200
+@@ -35,7 +35,8 @@
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+ $(GDK_LDFLAGS) \
+- $(CAIRO_LDFLAGS)
++ $(CAIRO_LDFLAGS) \
++ -no-undefined
+
+ libseed_cairo_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/canvas/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/canvas/Makefile.am 2015-05-09 23:06:38.796995000 +0200
+@@ -19,7 +19,8 @@
+ libseed_canvas_la_LDFLAGS = \
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+- $(CAIRO_LDFLAGS)
++ $(CAIRO_LDFLAGS) \
++ -no-undefined
+
+ libseed_canvas_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/dbus/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/dbus/Makefile.am 2015-05-09 23:06:38.809996000 +0200
+@@ -40,7 +40,8 @@
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+ $(DBUS_LDFLAGS) \
+ $(DBUSGLIB_LDFLAGS) \
+- -L/lib
++ -L/lib \
++ -no-undefined
+
+ libseed_dbusnative_la_LIBADD = \
+ -ldbus-1 \
+--- ./modules/DynamicObject/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/DynamicObject/Makefile.am 2015-05-09 23:06:38.814996400 +0200
+@@ -18,6 +18,10 @@
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+ $(SEED_PROFILE_LIBS)
++ -no-undefined
++
++libseed_DynamicObject_la_LIBADD = \
++ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la
+
+ endif
+
+--- ./modules/example/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/example/Makefile.am 2015-05-09 23:06:38.818996300 +0200
+@@ -16,7 +16,8 @@
+
+ libseed_example_la_LDFLAGS = \
+ -module -avoid-version \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_example_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/ffi/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/ffi/Makefile.am 2015-05-09 23:06:38.823996700 +0200
+@@ -25,7 +25,8 @@
+ libseed_ffi_la_LDFLAGS = \
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+- $(FFI_LDFLAGS)
++ $(FFI_LDFLAGS) \
++ -no-undefined
+
+ libseed_ffi_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/gettext/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/gettext/Makefile.am 2015-05-09 23:06:38.829996400 +0200
+@@ -16,7 +16,8 @@
+
+ libseed_gettext_la_LDFLAGS = \
+ -module -avoid-version \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_gettext_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/gettext/seed-gettext.c.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/gettext/seed-gettext.c 2015-05-09 23:06:38.833997400 +0200
+@@ -313,12 +313,28 @@
+ DEFINE_ENUM_MEMBER(ns_ref, LC_MONETARY);
+ DEFINE_ENUM_MEMBER(ns_ref, LC_MESSAGES);
+ DEFINE_ENUM_MEMBER(ns_ref, LC_ALL);
++
++ /* these are gnu extensions - and not available on BSD systems */
++
++#ifdef LC_PAPER
+ DEFINE_ENUM_MEMBER(ns_ref, LC_PAPER);
++#endif
++#ifdef LC_NAME
+ DEFINE_ENUM_MEMBER(ns_ref, LC_NAME);
++#endif
++#ifdef LC_ADDRESS
+ DEFINE_ENUM_MEMBER(ns_ref, LC_ADDRESS);
++#endif
++#ifdef LC_TELEPHONE
+ DEFINE_ENUM_MEMBER(ns_ref, LC_TELEPHONE);
++#endif
++#ifdef LC_MEASUREMENT
+ DEFINE_ENUM_MEMBER(ns_ref, LC_MEASUREMENT);
++#endif
++#ifdef LC_IDENTIFICATION
+ DEFINE_ENUM_MEMBER(ns_ref, LC_IDENTIFICATION);
++#endif
++
+ DEFINE_ENUM_MEMBER(ns_ref, LC_CTYPE);
+
+ return ns_ref;
+--- ./modules/gtkbuilder/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/gtkbuilder/Makefile.am 2015-05-09 23:06:38.840998300 +0200
+@@ -19,7 +19,8 @@
+ libseed_gtkbuilder_la_LDFLAGS = \
+ -module -avoid-version \
+ $(GTK_LDFLAGS) \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_gtkbuilder_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/libxml/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/libxml/Makefile.am 2015-05-09 23:06:38.845998700 +0200
+@@ -20,7 +20,8 @@
+ libseed_libxml_la_LDFLAGS = \
+ -module -avoid-version \
+ $(LIBXML_LDFLAGS) \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_libxml_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/multiprocessing/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/multiprocessing/Makefile.am 2015-05-09 23:06:38.852998800 +0200
+@@ -18,7 +18,8 @@
+
+ libseed_multiprocessing_la_LDFLAGS = \
+ -module -avoid-version \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_multiprocessing_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/multiprocessing/seed-multiprocessing.c.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/multiprocessing/seed-multiprocessing.c 2015-05-09 23:06:38.858999300 +0200
+@@ -17,6 +17,10 @@
+ * Copyright (C) Robert Carr 2009 <carrr@rpi.edu>
+ */
+
++#include <fcntl.h>
++
++#define pipe(fds) _pipe(fds,4096, _O_BINARY)
++
+ #include <seed-module.h>
+
+ #include <unistd.h>
+--- ./modules/readline/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/readline/Makefile.am 2015-05-09 23:06:38.865999400 +0200
+@@ -18,7 +18,8 @@
+ libseed_readline_la_LDFLAGS = \
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+- $(FFI_LDFLAGS)
++ $(FFI_LDFLAGS) \
++ -no-undefined
+
+ libseed_readline_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/sandbox/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/sandbox/Makefile.am 2015-05-09 23:06:38.869999700 +0200
+@@ -15,7 +15,8 @@
+
+ libseed_sandbox_la_LDFLAGS = \
+ -module -avoid-version \
+- $(GOBJECT_INTROSPECTION_LDFLAGS)
++ $(GOBJECT_INTROSPECTION_LDFLAGS) \
++ -no-undefined
+
+ libseed_sandbox_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
+--- ./modules/sqlite/Makefile.am.orig 2013-04-16 09:58:20.000000000 +0200
++++ ./modules/sqlite/Makefile.am 2015-05-09 23:06:38.875000500 +0200
+@@ -20,7 +20,8 @@
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+ $(SQLITE_LDFLAGS) \
+- $(SEED_DEBUG_LDFLAGS)
++ $(SEED_DEBUG_LDFLAGS) \
++ -no-undefined
+
+ libseed_sqlite_la_LIBADD = \
+ $(top_builddir)/libseed/libseed@SEED_GTK_VERSION@.la \
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=seed
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.8.1
+pkgrel=1
+arch=('any')
+pkgdesc="GNOME WebKit Javascript bindings (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas"
+ "${MINGW_PACKAGE_PREFIX}-libxml2"
+ "${MINGW_PACKAGE_PREFIX}-libffi"
+ "${MINGW_PACKAGE_PREFIX}-webkitgtk3"
+ "${MINGW_PACKAGE_PREFIX}-gnome-js-common"
+ "${MINGW_PACKAGE_PREFIX}-sqlite3"
+ "${MINGW_PACKAGE_PREFIX}-dbus-glib"
+ "${MINGW_PACKAGE_PREFIX}-cairo"
+ "${MINGW_PACKAGE_PREFIX}-mpfr"
+ "${MINGW_PACKAGE_PREFIX}-readline"
+ "${MINGW_PACKAGE_PREFIX}-dlfcn")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+ "${MINGW_PACKAGE_PREFIX}-vala"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "gtk-doc")
+license=("GPL 2")
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-$pkgver.tar.xz
+ 001-win.patch)
+sha256sums=('80cb4db7fa6f6cf8d3e255fc45a81657388d458bc8bf23e4089e35f69eeaac32'
+ '90ea22de1f3532cb53807e836ea44b1723555b257982c9aa58e2a921a5d2aa9f')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+ [ -d m4 ] && rm -rf m4
+ mkdir m4
+ autoreconf -f -i
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ mkdir -p doc/reference/html
+ cp -rf ../${_realname}-${pkgver}/doc/reference/html/* doc/reference/html
+
+ ../${_realname}-${pkgver}/configure \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST} \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib \
+ --enable-mpfr-module=no \
+ --enable-os-module=no \
+ --enable-readline-module=no
+
+ make
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}