]> saetta.ns0.it Git - msys2/commitdiff
libzakform: patch per aggiornamento.
authorAndrea Zagli <andrea.zagli@email.it>
Wed, 26 Jul 2017 08:46:16 +0000 (10:46 +0200)
committerAndrea Zagli <andrea.zagli@email.it>
Wed, 26 Jul 2017 08:46:16 +0000 (10:46 +0200)
packages/mingw-w64-libzakform/0001-win.patch [new file with mode: 0644]
packages/mingw-w64-libzakform/PKGBUILD

diff --git a/packages/mingw-w64-libzakform/0001-win.patch b/packages/mingw-w64-libzakform/0001-win.patch
new file mode 100644 (file)
index 0000000..dd64a41
--- /dev/null
@@ -0,0 +1,43 @@
+--- ./src/commons.h
++++ ./src/commons.h
+@@ -19,6 +19,12 @@
+ #ifndef _ZAK_FORM_COMMONS_H_
+ #define _ZAK_FORM_COMMONS_H_
++#ifdef G_OS_WIN32
++      #include <windows.h>
++
++static HMODULE backend_dll = NULL;
++#endif
++
+ #include <glib-object.h>
+--- ./src/form.c
++++ ./src/form.c
+@@ -61,8 +61,6 @@
+ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (ZakFormForm, zak_form_form, G_TYPE_OBJECT)
+ #ifdef G_OS_WIN32
+-static HMODULE backend_dll = NULL;
+-
+ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved);
+ BOOL WINAPI
+
+--- ./src/Makefile.am
++++ ./src/Makefile.am
+@@ -8,10 +8,10 @@
+ lib_LTLIBRARIES = libzakform.la
+ zakformmarshal.c: zakformmarshal.h zakform_marshal.list $(GLIB_GENMARSHAL)
+-      $(GLIB_GENMARSHAL) $(srcdir)/zakform_marshal.list --body --prefix=_zak_form_marshal > $(srcdir)/$@
++      $(GLIB_GENMARSHAL) $(srcdir)/zakform_marshal.list --body --prefix=_zak_form_marshal > $(builddir)/$@
+ zakformmarshal.h: zakform_marshal.list $(GLIB_GENMARSHAL)
+-      $(GLIB_GENMARSHAL) $(srcdir)/zakform_marshal.list --header --prefix=_zak_form_marshal > $(srcdir)/$@
++      $(GLIB_GENMARSHAL) $(srcdir)/zakform_marshal.list --header --prefix=_zak_form_marshal > $(builddir)/$@
+ libzakform_la_SOURCES = \
+                         commons.c \
+
index 4135743ff28af71270fa77f099f17611e7d11204..83a4b0fe90b88316ccf257fcc896f65401420d5a 100644 (file)
@@ -4,7 +4,7 @@ _realname=libzakform
 _base_ver=0.0.1
 pkgbase=mingw-w64-${_realname}
 pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
-pkgver=0.0.1.67.e2390fe
+pkgver=0.0.1.110.b3cc41c
 pkgrel=1
 arch=('any')
 pkgdesc="Library manage forms (mingw-w64)"
@@ -16,8 +16,10 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
 options=('!strip' 'debug' 'staticlibs')
 license=("LGPL 2.1")
 url="http://saetta.ns0.it/"
-source=(git+http://saetta.ns0.it/git/zakform/${_realname}#branch=develop)
-sha256sums=('SKIP')
+source=(git+http://saetta.ns0.it/git/zakform/${_realname}#branch=develop
+        0001-win.patch)
+sha256sums=('SKIP'
+            'ce7262eb70ca79ceff3add3435a6676048553d5baea5b39daaee0c7e9ce81ba0')
 
 pkgver() {
   cd "$srcdir/$_realname"
@@ -27,6 +29,7 @@ pkgver() {
 prepare() {
   cd ${_realname}
 
+  patch -p1 -i ${srcdir}/0001-win.patch
 }
 
 build() {