[arch-commits] Commit in gtkspell3/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Tue Jan 16 07:56:34 UTC 2018
Date: Tuesday, January 16, 2018 @ 07:56:33
Author: arojas
Revision: 283042
archrelease: copy trunk to community-staging-x86_64
Added:
gtkspell3/repos/community-staging-x86_64/
gtkspell3/repos/community-staging-x86_64/PKGBUILD
(from rev 283041, gtkspell3/trunk/PKGBUILD)
gtkspell3/repos/community-staging-x86_64/enchant-2.patch
(from rev 283041, gtkspell3/trunk/enchant-2.patch)
-----------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
enchant-2.patch | 20 ++++++++++++++++++++
2 files changed, 60 insertions(+)
Copied: gtkspell3/repos/community-staging-x86_64/PKGBUILD (from rev 283041, gtkspell3/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-16 07:56:33 UTC (rev 283042)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Roman Kyrylych <roman at archlinux.org>
+# Contributor: Ben <ben at benmazer.net>
+
+pkgname=gtkspell3
+pkgver=3.0.9
+pkgrel=3
+url="http://gtkspell.sourceforge.net/"
+pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
+arch=('x86_64')
+license=('GPL')
+depends=('gtk3' 'enchant')
+makedepends=('intltool' 'gobject-introspection' 'vala' 'python2')
+source=(https://downloads.sourceforge.net/gtkspell/$pkgname-$pkgver.tar.xz
+ enchant-2.patch)
+sha256sums=('a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26'
+ '17355439e8540e02591e398bc8fd2abfce708157cc116bfd93feab214613cbd3')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../enchant-2.patch
+ sed -e 's/enchant/enchant-2/g' -i configure.ac
+ autoreconf -vi
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr
+
+ #https://bugzilla.gnome.org/show_bug.cgi?id=656231
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
Copied: gtkspell3/repos/community-staging-x86_64/enchant-2.patch (from rev 283041, gtkspell3/trunk/enchant-2.patch)
===================================================================
--- community-staging-x86_64/enchant-2.patch (rev 0)
+++ community-staging-x86_64/enchant-2.patch 2018-01-16 07:56:33 UTC (rev 283042)
@@ -0,0 +1,20 @@
+--- gtkspell3-3.0.9/gtkspell/gtkspell.c.orig 2016-08-06 09:43:17.000000000 +0000
++++ gtkspell3-3.0.9/gtkspell/gtkspell.c 2017-11-22 12:07:52.716086700 +0000
+@@ -353,7 +353,7 @@
+ get_word_extents_from_mark (spell->priv->buffer, &start, &end, spell->priv->mark_click);
+ word = gtk_text_buffer_get_text (spell->priv->buffer, &start, &end, FALSE);
+
+- enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
++ enchant_dict_add (spell->priv->speller, word, strlen (word));
+
+ gtk_spell_checker_recheck_all (spell);
+
+@@ -1246,7 +1246,7 @@
+ void
+ gtk_spell_checker_add_to_dictionary (GtkSpellChecker *spell, const gchar *word)
+ {
+- enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
++ enchant_dict_add (spell->priv->speller, word, strlen (word));
+ gtk_spell_checker_recheck_all (spell);
+ }
+
More information about the arch-commits
mailing list