--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=nautils
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.16.0
+pkgrel=1
+arch=('any')
+pkgdesc="GNOME PO files editor (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+ "${MINGW_PACKAGE_PREFIX}-gtk3"
+ "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+ "${MINGW_PACKAGE_PREFIX}-vala"
+ "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+ "gtk-doc")
+license=("LGPL 2.1")
+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=('46807d17a089e8308b0089e39b83aae01a186921c893f3a50ff1b51d28443dcb'
+ '25d8a61f80c8ab6ed329bd3b58466b93120ac9b0111c3ad57a11c3dc9935d6f3')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+ autoreconf -f -i
+}
+
+build() {
+ mkdir -p build-${MINGW_CHOST}
+ cd build-${MINGW_CHOST}
+
+ mkdir -p docs/reference/gdict/html
+ cp -rf ../${_realname}-${pkgver}/docs/reference/gdict/html/* docs/reference/gdict/html
+
+ ../${_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"
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.docs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.docs"
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.libs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.libs"
+}