contrib/gtkspell/Pkgfile
2021-04-26 23:14:59 +10:00

36 lines
933 B
Plaintext

# Description: Spell checking utility for GTK+ applications.
# URL: http://gtkspell.sourceforge.net/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: aspell-en enchant gtk gtk-doc xorg-libxdamage intltool
name=gtkspell
version=2.0.16
release=4
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz
enchant-2.patch)
build() {
cd $name-$version
# Fix intltoolize broken file, see upstream #577133
sed -i -e "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" po/Makefile.in.in
patch -p1 -i $SRC/enchant-2.patch
gtkdocize
autoreconf -fvi
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
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
}