From 980e5dc660652f982e5fb349e05c4aa4f2f23274 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 5 Apr 2015 11:28:18 +0200 Subject: [PATCH] vinagre: nuovo pacchetto WIP. --- packages/mingw-w64-vinagre/001-win.patch | 24 +++++++++ packages/mingw-w64-vinagre/PKGBUILD | 54 +++++++++++++++++++ .../mingw-w64-vinagre/vinagre-i686.install | 11 ++++ .../mingw-w64-vinagre/vinagre-x86_64.install | 11 ++++ 4 files changed, 100 insertions(+) create mode 100644 packages/mingw-w64-vinagre/001-win.patch create mode 100644 packages/mingw-w64-vinagre/PKGBUILD create mode 100644 packages/mingw-w64-vinagre/vinagre-i686.install create mode 100644 packages/mingw-w64-vinagre/vinagre-x86_64.install diff --git a/packages/mingw-w64-vinagre/001-win.patch b/packages/mingw-w64-vinagre/001-win.patch new file mode 100644 index 0000000..b4e7b3d --- /dev/null +++ b/packages/mingw-w64-vinagre/001-win.patch @@ -0,0 +1,24 @@ +--- ./vinagre/vinagre-reverse-vnc-listener-dialog.c.orig 2015-02-22 17:05:00.957604000 +0100 ++++ ./vinagre/vinagre-reverse-vnc-listener-dialog.c 2015-02-22 17:05:21.859349800 +0100 +@@ -21,7 +21,9 @@ + #include + + #include ++#ifndef G_OS_WIN32 + #include ++#endif + #include + #include + #include +--- ./vinagre/vinagre-reverse-vnc-listener.c.orig 2015-02-22 17:04:39.435874500 +0100 ++++ ./vinagre/vinagre-reverse-vnc-listener.c 2015-02-22 17:04:47.642312200 +0100 +@@ -22,7 +22,9 @@ + #include + #include + #include ++#ifndef G_OS_WIN32 + #include ++#endif + #include + #include + #include diff --git a/packages/mingw-w64-vinagre/PKGBUILD b/packages/mingw-w64-vinagre/PKGBUILD new file mode 100644 index 0000000..5539e81 --- /dev/null +++ b/packages/mingw-w64-vinagre/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Andrea Zagli + +_realname=vinagre +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=3.14.3 +pkgrel=1 +arch=('any') +pkgdesc="Remote desktop client for the GNOME Desktop (mingw-w64)" +options=(strip staticlibs) +depends=("${MINGW_PACKAGE_PREFIX}-gtk3" + "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas" + "${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme" + "${MINGW_PACKAGE_PREFIX}-gtk-vnc" + "${MINGW_PACKAGE_PREFIX}-spice-gtk" + "${MINGW_PACKAGE_PREFIX}-libsecret") +options=('strip' 'staticlibs') +license=("GPL 2") +url="http://www.gnome.org" +install=vinagre-${CARCH}.install +source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz + 001-win.patch) +sha256sums=('f82d8c66684a00a79422724b0e1efad28ba35ba21a92dc7dcb867ed7b64659f0' + '380e82d8fb3468dac99834f2ec958bc86ba5957a61ed2c34b8489d286168a6ee') + +prepare() { + cd "${srcdir}"/${_realname}-${pkgver} + + patch -p1 -i ${srcdir}/001-win.patch + + #autoreconf -fi +} + +build() { + mkdir -p build-${MINGW_CHOST} + cd build-${MINGW_CHOST} + + ../${_realname}-${pkgver}/configure \ + --prefix=${MINGW_PREFIX} \ + --libexecdir=${MINGW_PREFIX}/lib \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --build=${MINGW_CHOST} \ + --disable-ssh \ + --disable-rdp \ + --without-avahi \ + --without-telepathy + + make +} + +package() { + cd "$srcdir/build-${MINGW_CHOST}" + make DESTDIR=$pkgdir install +} diff --git a/packages/mingw-w64-vinagre/vinagre-i686.install b/packages/mingw-w64-vinagre/vinagre-i686.install new file mode 100644 index 0000000..375e708 --- /dev/null +++ b/packages/mingw-w64-vinagre/vinagre-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-vinagre/vinagre-x86_64.install b/packages/mingw-w64-vinagre/vinagre-x86_64.install new file mode 100644 index 0000000..d43ee14 --- /dev/null +++ b/packages/mingw-w64-vinagre/vinagre-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 +} -- 2.49.0