summaryrefslogtreecommitdiff
path: root/gtkspell/Pkgfile
blob: fb191a708c782bc555c1ccd9e4600cedd768dd0f (plain)
    1 # Description: Spell checking utility for GTK+ applications.
    2 # URL: http://gtkspell.sourceforge.net/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: aspell-en enchant gtk gtk-doc xorg-libxdamage intltool
    5 
    6 name=gtkspell
    7 version=2.0.16
    8 release=4
    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 	# Fix intltoolize broken file, see upstream #577133
   16 	sed -i -e "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" po/Makefile.in.in
   17 
   18 	patch -p1 -i $SRC/enchant-2.patch
   19 
   20         gtkdocize
   21         autoreconf -fvi
   22 
   23 	rm -f $SRC/po/*.{po,gmo}
   24 
   25 	sed -i \
   26 		-e 's/USE_NLS=yes/USE_NLS=no/' \
   27 		-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
   28 
   29 	sed -i -e 's/SUBDIRS = gtkspell examples docs po/SUBDIRS = gtkspell examples po/' Makefile.in
   30 
   31 	./configure --prefix=/usr
   32 	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   33 	make
   34 	make DESTDIR=$PKG install
   35 }

Generated by cgit