--- /dev/null
+--- ./data/Makefile.am.orig 2015-03-26 15:21:23.220445200 +0100
++++ ./data/Makefile.am 2015-03-26 15:21:26.939756600 +0100
+@@ -7,7 +7,6 @@
+
+ appstream_in_files = gnome-chess.appdata.xml.in
+ appstream_XML = $(appstream_in_files:.appdata.xml.in=.appdata.xml)
+-@APPSTREAM_XML_RULES@
+ @INTLTOOL_XML_RULE@
+
+ dist_noinst_DATA = \
+--- ./Makefile.am.orig 2015-03-13 16:03:29.000000000 +0100
++++ ./Makefile.am 2015-03-26 14:53:25.490525500 +0100
+@@ -1,4 +1,4 @@
+-SUBDIRS = data lib src tests help po
++SUBDIRS = data lib src tests po
+
+ ACLOCAL_AMFLAGS = -I m4
+
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gnome-chess
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.16.0
+pkgrel=1
+arch=('any')
+pkgdesc="Play the classic two-player boardgame of chess (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+ "${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-librsvg"
+ "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+ "${MINGW_PACKAGE_PREFIX}-vala"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection")
+license=("GPL 2")
+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=('7e465845c925d6ea017e65c782ccdd39fabeb61c0f7f667102fc604ad491e1e4'
+ '27df1743d756bc8784bc977dbbd61b0711a5678a673d5e2f544b6e82827f29d6')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ #mkdir vapi
+ #echo "" > vapi/windows.vapi
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+ autoreconf -f -i
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ ../${_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"
+}