From: Andrea Zagli Date: Wed, 8 Apr 2015 06:53:19 +0000 (+0200) Subject: gnome-dictionary: nuovo pacchetto WIP. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=ef9e66fb722c711ba9cce66eff4b0da391eb0db5;p=msys2 gnome-dictionary: nuovo pacchetto WIP. --- diff --git a/packages/mingw-w64-gnome-dictionary/001-win.patch b/packages/mingw-w64-gnome-dictionary/001-win.patch new file mode 100644 index 0000000..eb1e86b --- /dev/null +++ b/packages/mingw-w64-gnome-dictionary/001-win.patch @@ -0,0 +1,36 @@ +--- ./libgdict/gdict-client-context.c.orig 2015-03-22 13:10:11.000000000 +0100 ++++ ./libgdict/gdict-client-context.c 2015-04-06 18:57:55.314595800 +0200 +@@ -36,10 +36,6 @@ + #include + #include + #include +-#include +-#include +-#include +-#include + #include + #include + #ifdef HAVE_UNISTD_H +@@ -49,6 +45,9 @@ + #include + #include + ++#include ++#include ++ + #include "gdict-context-private.h" + #include "gdict-context.h" + #include "gdict-client-context.h" +--- ./libgdict/gdict-utils.c.orig 2015-03-22 13:10:11.000000000 +0100 ++++ ./libgdict/gdict-utils.c 2015-04-06 18:52:11.888163700 +0200 +@@ -25,10 +25,6 @@ + #include + #include + #include +-#include +-#include +-#include +-#include + #ifdef HAVE_UNISTD_H + #include + #endif diff --git a/packages/mingw-w64-gnome-dictionary/PKGBUILD b/packages/mingw-w64-gnome-dictionary/PKGBUILD new file mode 100644 index 0000000..d6ec5af --- /dev/null +++ b/packages/mingw-w64-gnome-dictionary/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Andrea Zagli + +_realname=gnome-dictionary +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' + 'SKIP') + +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 V=1 +} + +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" +} diff --git a/packages/mingw-w64-gnome-dictionary/gnome-dictionary-i686.install b/packages/mingw-w64-gnome-dictionary/gnome-dictionary-i686.install new file mode 100644 index 0000000..fcc957e --- /dev/null +++ b/packages/mingw-w64-gnome-dictionary/gnome-dictionary-i686.install @@ -0,0 +1,11 @@ +post_install() { + mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/packages/mingw-w64-gnome-dictionary/gnome-dictionary-x86_64.install b/packages/mingw-w64-gnome-dictionary/gnome-dictionary-x86_64.install new file mode 100644 index 0000000..6bcf507 --- /dev/null +++ b/packages/mingw-w64-gnome-dictionary/gnome-dictionary-x86_64.install @@ -0,0 +1,11 @@ +post_install() { + mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}