[arch-commits] Commit in gtkspell/repos (3 files)
Jan de Groot
jgc at archlinux.org
Wed Nov 22 12:06:09 UTC 2017
Date: Wednesday, November 22, 2017 @ 12:06:08
Author: jgc
Revision: 310569
archrelease: copy trunk to staging-x86_64
Added:
gtkspell/repos/staging-x86_64/
gtkspell/repos/staging-x86_64/PKGBUILD
(from rev 310568, gtkspell/trunk/PKGBUILD)
gtkspell/repos/staging-x86_64/enchant-2.patch
(from rev 310568, gtkspell/trunk/enchant-2.patch)
-----------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
enchant-2.patch | 11 +++++++++++
2 files changed, 49 insertions(+)
Copied: gtkspell/repos/staging-x86_64/PKGBUILD (from rev 310568, gtkspell/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-11-22 12:06:08 UTC (rev 310569)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Roman Kyrylych <roman at archlinux.org>
+# Contributer: Ben <ben at benmazer.net>
+
+pkgname=gtkspell
+pkgver=2.0.16
+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')
+license=('GPL')
+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}
+ enchant-2.patch)
+sha256sums=('8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02'
+ 'SKIP'
+ 'edeecf8e1cb9c524fdf800026c2b9c91c60faba637185302167909dd234453e9')
+
+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
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="${pkgdir}" install
+}
Copied: gtkspell/repos/staging-x86_64/enchant-2.patch (from rev 310568, gtkspell/trunk/enchant-2.patch)
===================================================================
--- staging-x86_64/enchant-2.patch (rev 0)
+++ staging-x86_64/enchant-2.patch 2017-11-22 12:06:08 UTC (rev 310569)
@@ -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