contrib/gtkspell/Pkgfile

34 lines
804 B
Plaintext
Raw Normal View History

2014-07-07 09:13:01 +02:00
# Description: Spell checking utility for GTK+ applications.
2020-07-12 20:48:11 +02:00
# URL: http://gtkspell.sourceforge.net/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2018-01-31 12:38:54 +01:00
# Depends on: aspell-en enchant gtk gtk-doc xorg-libxdamage
2014-07-07 09:13:01 +02:00
name=gtkspell
version=2.0.16
2018-01-31 12:38:54 +01:00
release=3
2017-11-27 22:42:01 +01:00
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz
enchant-2.patch)
2014-07-07 09:13:01 +02:00
build() {
cd $name-$version
2018-01-31 12:38:54 +01:00
patch -p1 -i $SRC/enchant-2.patch
gtkdocize
autoreconf -fvi
2014-07-07 09:13:01 +02:00
rm -f $SRC/po/*.{po,gmo}
sed -i \
-e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
sed -i -e 's/SUBDIRS = gtkspell examples docs po/SUBDIRS = gtkspell examples po/' Makefile.in
./configure --prefix=/usr
2018-01-31 12:38:54 +01:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2014-07-07 09:13:01 +02:00
make
make DESTDIR=$PKG install
}