--- /dev/null
+--- a/src/resources.rc.in\r
++++ b/src/resources.rc.in\r
+@@ -1,4 +1,4 @@\r
+-AppIcon ICON "..\\data\\opengov\\images\\opengov.ico"\r
++AppIcon ICON "@top_srcdir@\\data\\opengov\\images\\opengov.ico"\r
+ \r
+ 1 VERSIONINFO\r
+ FILEVERSION @V_MAJOR@,@V_MINOR@,@V_MICRO@,0\r
+@@ -12,7 +12,7 @@ BEGIN\r
+ VALUE "FileDescription", "Amministrazione Aperta"\r
+ VALUE "FileVersion", "@V_MAJOR@.@V_MINOR@.@V_MICRO@"\r
+ VALUE "InternalName", "opengov"\r
+- VALUE "LegalCopyright", "Copyright 2012-2013 Andrea Zagli <a.zagli@comune.scandicci.fi.it>"\r
++ VALUE "LegalCopyright", "Copyright 2012-2017 Andrea Zagli <a.zagli@comune.scandicci.fi.it>"\r
+ VALUE "OriginalFilename", "opengov.exe"\r
+ VALUE "ProductName", "Amministrazione Aperta"\r
+ VALUE "ProductVersion", "@V_MAJOR@.@V_MINOR@.@V_MICRO@"\r
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=opengov
+_base_ver=0.0.6
+pkgbase=mingw-w64-${_realname}
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.0.6.243.7493394
+pkgrel=1
+arch=('any')
+pkgdesc="Gestione amministrazione aperta (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-libgdaex"
+ "${MINGW_PACKAGE_PREFIX}-libgdaexgrid"
+ "${MINGW_PACKAGE_PREFIX}-libsolipa"
+ "${MINGW_PACKAGE_PREFIX}-libgtkform"
+ "${MINGW_PACKAGE_PREFIX}-libzakform"
+ "${MINGW_PACKAGE_PREFIX}-libzakformgtk"
+ "${MINGW_PACKAGE_PREFIX}-libzakformgdaex"
+ "${MINGW_PACKAGE_PREFIX}-libzakformgtkdecoder"
+ "${MINGW_PACKAGE_PREFIX}-libzakformhashtable"
+ "${MINGW_PACKAGE_PREFIX}-libsoup"
+ "${MINGW_PACKAGE_PREFIX}-libzakconfi"
+ "${MINGW_PACKAGE_PREFIX}-libzakauthe"
+ "${MINGW_PACKAGE_PREFIX}-libzakautho"
+ "${MINGW_PACKAGE_PREFIX}-zak-autho-gui"
+ "${MINGW_PACKAGE_PREFIX}-libzakutils"
+ "${MINGW_PACKAGE_PREFIX}-libzakaudit"
+ "${MINGW_PACKAGE_PREFIX}-libzakconfi"
+ "${MINGW_PACKAGE_PREFIX}-libreptool"
+ "${MINGW_PACKAGE_PREFIX}-territorio"
+ "${MINGW_PACKAGE_PREFIX}-organigramma"
+ "${MINGW_PACKAGE_PREFIX}-postgresql")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+ "gtk-doc"
+ "${MINGW_PACKAGE_PREFIX}-gnome-common")
+options=('!strip' 'debug' 'staticlibs')
+license=("GPL 2")
+url="http://saetta.ns0.it/"
+source=(git+http://saetta.ns0.it/~andreaz/git/${_realname}#branch=art29
+ 001-path_resource.patch)
+sha256sums=('SKIP'
+ 'a70e5759b86cba33ee8cc23f80be0b1ace64c3e131f80a7d231bf9cdb53fc7a9')
+
+pkgver() {
+ cd "$srcdir/$_realname"
+ printf "%s.%s.%s" "${_base_ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd ${_realname}
+
+ patch -p1 -i ${srcdir}/001-path_resource.patch
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ ../${_realname}/autogen.sh \
+ --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}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}