--- /dev/null
+--- ./src/gca-document.vala.orig 2014-10-31 17:37:56.000000000 +0100
++++ ./src/gca-document.vala 2015-03-30 22:13:30.459752200 +0200
+@@ -260,7 +260,7 @@
+ var tmpfilename = Path.build_filename(tmpdir, filename);
+ var tmpfile = FileUtils.mkstemp(tmpfilename);
+
+- var ostream = new UnixOutputStream(tmpfile, true);
++ var ostream = new Win32OutputStream(tmpfile, true);
+
+ try
+ {
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gedit-code-assistance
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.14.3
+pkgrel=1
+arch=('any')
+pkgdesc="Code assistance for gedit (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-gedit")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "${MINGW_PACKAGE_PREFIX}-vala")
+options=('strip' 'staticlibs')
+license=("GPL 3")
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
+ 001-win.patch)
+sha256sums=('22881ee544de098d74def4ab2bc6d627e7dbb16940396dcf43c174d501cc918b'
+ 'b62c3ad98dd480115d9154e3d9b735169c26dbe361689f8894b6d5f0fc372270')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+ autoreconf -fi
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ ../${_realname}-${pkgver}/configure \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST}
+
+ 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"
+}