### this file is sourced not run
PKGVER=0.60.6.1
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5 / 8.2
TARBALL=aspell-$PKGVER.tar.gz
MD5SUM=e66a9c9af6a60dc46134fdacf6ce97d7
SRC_URL=http://ftp.gnu.org/gnu/aspell/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="aspell: aspell $PKGVER (Spell checker library)  
aspell:  
aspell: The Aspell package contains an interactive spell checking program and 
aspell: the Aspell libraries. Aspell can either be used as a library or as an 
aspell: independent spell checker.  
aspell: 
aspell: 
aspell: 
aspell: 
aspell: 
aspell:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# BLFS 8.2: gcc7 patch
	cd /tmp/aspell* &&
	
	sed -i '/ top.do_check ==/s/top.do_check/*&/' modules/filter/tex.cpp &&
	sed -i '/word ==/s/word/*&/'                  prog/check_funs.cpp &&
	
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	ln -sfvn aspell-0.60 /usr/$LIBDIR/aspell &&
	install -v -m755 -d /usr/share/doc/aspell-$PKGVER/aspell{,-dev}.html &&
	install -v -m644 manual/aspell.html/* \
		/usr/share/doc/aspell-$PKGVER/aspell.html &&
	install -v -m644 manual/aspell-dev.html/* \
		/usr/share/doc/aspell-$PKGVER/aspell-dev.html &&
	install -v -m 755 scripts/ispell /usr/bin/ &&
	install -v -m 755 scripts/spell /usr/bin/ &&
	
	# multilib
	mv /usr/bin/pspell-config{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/pspell-config
}


