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

diff --git a/packages/mingw-w64-gedit-code-assistance/001-win.patch b/packages/mingw-w64-gedit-code-assistance/001-win.patch
new file mode 100644 (file)
index 0000000..a37746d
--- /dev/null
@@ -0,0 +1,11 @@
+--- ./src/gca-document.vala.orig       2014-10-31 17:37:56.000000000 +0100
++++ ./src/gca-document.vala    2015-03-30 22:13:30.459752200 +0200
+@@ -260,7 +260,7 @@
+               var tmpfilename = Path.build_filename(tmpdir, filename);
+               var tmpfile = FileUtils.mkstemp(tmpfilename);
+-              var ostream = new UnixOutputStream(tmpfile, true);
++              var ostream = new Win32OutputStream(tmpfile, true);
+               try
+               {
diff --git a/packages/mingw-w64-gedit-code-assistance/PKGBUILD b/packages/mingw-w64-gedit-code-assistance/PKGBUILD
new file mode 100644 (file)
index 0000000..8fa504e
--- /dev/null
@@ -0,0 +1,48 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gedit-code-assistance
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.14.3
+pkgrel=1
+arch=('any')
+pkgdesc="Code assistance for gedit (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-gedit")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+             "${MINGW_PACKAGE_PREFIX}-vala")
+options=('strip' 'staticlibs')
+license=("GPL 3")
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
+        001-win.patch)
+sha256sums=('22881ee544de098d74def4ab2bc6d627e7dbb16940396dcf43c174d501cc918b'
+            'b62c3ad98dd480115d9154e3d9b735169c26dbe361689f8894b6d5f0fc372270')
+
+prepare() {
+  cd "${srcdir}"/${_realname}-${pkgver}
+
+  patch -b -V simple -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 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"
+}