]> saetta.ns0.it Git - msys2/commitdiff
vte: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Sun, 5 Apr 2015 09:29:35 +0000 (11:29 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:13:19 +0000 (15:13 +0200)
packages/mingw-w64-vte/001-win.patch [new file with mode: 0644]
packages/mingw-w64-vte/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-vte/001-win.patch b/packages/mingw-w64-vte/001-win.patch
new file mode 100644 (file)
index 0000000..7034faf
--- /dev/null
@@ -0,0 +1,11 @@
+--- ./configure.ac.orig        2015-03-14 13:24:20.032681400 +0100
++++ ./configure.ac     2015-03-14 13:24:25.643002700 +0100
+@@ -226,7 +226,7 @@
+ # Search for the required modules.
+-VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0 zlib $GNUTLS_PKGS"
++VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gobject-2.0 gio-2.0 zlib $GNUTLS_PKGS"
+ PKG_CHECK_MODULES([VTE],[$VTE_PKGS])
+ AC_SUBST([VTE_PKGS])
diff --git a/packages/mingw-w64-vte/PKGBUILD b/packages/mingw-w64-vte/PKGBUILD
new file mode 100644 (file)
index 0000000..6dbe7bf
--- /dev/null
@@ -0,0 +1,53 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=vte
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.39.90
+pkgrel=1
+arch=('any')
+pkgdesc="Terminal emulator widget for GTK+ 3.0 (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}-glade"
+         "${MINGW_PACKAGE_PREFIX}-gnutls"
+         "${MINGW_PACKAGE_PREFIX}-libxml2")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+             "${MINGW_PACKAGE_PREFIX}-vala")
+options=('strip' 'staticlibs')
+license=("LGPL 2.1")
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
+        001-win.patch)
+sha256sums=('9d127e8dc9ca8267fe65f280bf3afb17d68ef154163f84b3bb2fc79e73abbc97'
+            '55fa6fca3c336e10ae964d507d935c3c5b7b01be1fdb82084899921d799bc2ab')
+
+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}
+
+  make
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}