--- /dev/null
+--- ./gplugin/CMakeLists.txt.orig 2015-05-06 22:29:53.416138100 +0200
++++ ./gplugin/CMakeLists.txt 2015-05-06 22:30:02.902002900 +0200
+@@ -196,14 +196,6 @@
+ add_executable(gplugin-query gplugin-query.c)
+ target_link_libraries(gplugin-query ${GLIB_LIBRARIES} gplugin)
+
+-help2man(
+- TARGET gplugin-query
+- OUTPUT gplugin-query.1
+- SECTION 1
+- NAME "Query installed plugins"
+- HELP_OPTION --help-all
+-)
+-
+ ###############################################################################
+ # loader-tests static library
+ ###############################################################################
--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gplugin
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.0.18
+pkgrel=1
+arch=('any')
+pkgdesc="An Open Source implementation of the iCalendar protocols and protocol data units (mingw-w64)"
+license=("LGPL 2.1")
+url="https://github.com/libical/libical"
+depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-libxslt")
+makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "gettext")
+options=('strip' '!debug' 'staticlibs')
+source=(https://bitbucket.org/rw_grim/${_realname}/get/v$pkgver.tar.bz2
+ 001-win.patch)
+sha256sums=('fe0d6e450ff9f63e866bf75344cb561985dccae1e89e4162c20d07d961b71fc9'
+ '095b3ac2ff6c41db2463b4e8fce51d7304cd7f7ed751fc706707442b0a40b340')
+
+prepare() {
+ cd rw_grim-gplugin-9f4dea11d6eb
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ ${MINGW_PREFIX}/bin/cmake \
+ -DCMAKE_INSTALL_PREFIX=${pkgdir}${MINGW_PREFIX} \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
+ -DCMAKE_C_FLAGS="${CFLAGS}" \
+ -DBUILD_GJS="Off" \
+ -DBUILD_LUA="Off" \
+ -DBUILD_PYTHON="Off" \
+ -DBUILD_SEED="Off" \
+ -DBUILD_GIR="Off" \
+ -DTESTING_ENABLED="Off" \
+ -G "MSYS Makefiles" \
+ ../rw_grim-gplugin-9f4dea11d6eb
+ make
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make install
+
+ mv "$pkgdir${MINGW_PREFIX}/lib/libgplugin.dll" "$pkgdir${MINGW_PREFIX}/bin"
+ mv "$pkgdir${MINGW_PREFIX}/lib/libgplugin-gtk.dll" "$pkgdir${MINGW_PREFIX}/bin"
+}