[arch-commits] Commit in gtkspell/trunk (PKGBUILD enchant-2.patch)

Jan de Groot jgc at archlinux.org
Wed Nov 22 12:06:03 UTC 2017


    Date: Wednesday, November 22, 2017 @ 12:06:02
  Author: jgc
Revision: 310568

upgpkg: gtkspell 2.0.16-6

Libical/Enchant rebuild

Added:
  gtkspell/trunk/enchant-2.patch
Modified:
  gtkspell/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   19 +++++++++++++------
 enchant-2.patch |   11 +++++++++++
 2 files changed, 24 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-22 11:47:58 UTC (rev 310567)
+++ PKGBUILD	2017-11-22 12:06:02 UTC (rev 310568)
@@ -4,7 +4,7 @@
 
 pkgname=gtkspell
 pkgver=2.0.16
-pkgrel=5
+pkgrel=6
 url="http://gtkspell.sourceforge.net/"
 pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
 arch=('x86_64')
@@ -12,14 +12,21 @@
 depends=('gtk2' 'enchant')
 makedepends=('intltool' 'gtk-doc')
 validpgpkeys=('7C70E4D9927061BD840E82DB6BA6197569B23319') #Daniel Atallah <daniel.atallah at gmail.com>
-source=(https://downloads.sourceforge.net/sourceforge/gtkspell/${pkgname}-${pkgver}.tar.gz{,.asc})
+source=(https://downloads.sourceforge.net/sourceforge/gtkspell/${pkgname}-${pkgver}.tar.gz{,.asc}
+        enchant-2.patch)
 sha256sums=('8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02'
-            'SKIP')
+            'SKIP'
+            'edeecf8e1cb9c524fdf800026c2b9c91c60faba637185302167909dd234453e9')
 
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../enchant-2.patch
   gtkdocize
   autoreconf -fi
+}
+
+build() {
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr --disable-static
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
@@ -26,6 +33,6 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
   make DESTDIR="${pkgdir}" install
 }

Added: enchant-2.patch
===================================================================
--- enchant-2.patch	                        (rev 0)
+++ enchant-2.patch	2017-11-22 12:06:02 UTC (rev 310568)
@@ -0,0 +1,11 @@
+--- gtkspell-2.0.16/gtkspell/gtkspell.c.orig	2009-10-09 19:01:47.000000000 +0000
++++ gtkspell-2.0.16/gtkspell/gtkspell.c	2017-11-22 12:02:07.638601094 +0000
+@@ -277,7 +277,7 @@
+ 	get_word_extents_from_mark(spell->buffer, &start, &end, spell->mark_click);
+ 	word = gtk_text_buffer_get_text(spell->buffer, &start, &end, FALSE);
+ 	
+-	enchant_dict_add_to_pwl( spell->speller, word, strlen(word));
++	enchant_dict_add( spell->speller, word, strlen(word));
+ 
+ 	gtkspell_recheck_all(spell);
+ 


More information about the arch-commits mailing list