blob: ebd73ae9a6ee65aedbc40822afe4427f5fb4fe92 (
plain)
1 # Description: Spell checking utility for GTK+ applications.
2 # URL: https://gtkspell.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: aspell-en enchant gtk gtk-doc xorg-libxdamage
5
6 name=gtkspell
7 version=2.0.16
8 release=3
9 source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz
10 enchant-2.patch)
11
12 build() {
13 cd $name-$version
14
15 patch -p1 -i $SRC/enchant-2.patch
16
17 gtkdocize
18 autoreconf -fvi
19
20 rm -f $SRC/po/*.{po,gmo}
21
22 sed -i \
23 -e 's/USE_NLS=yes/USE_NLS=no/' \
24 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
25
26 sed -i -e 's/SUBDIRS = gtkspell examples docs po/SUBDIRS = gtkspell examples po/' Makefile.in
27
28 ./configure --prefix=/usr
29 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
30 make
31 make DESTDIR=$PKG install
32 }
|