### this file is sourced not run
PKGVER=1.6.1
PKGBUILD=1
PKGARCH=i686

# source: BLFS 7.5 updated to 1.6.1 (2.x onwards is new ABI)
TARBALL=enchant-$PKGVER.tar.gz
MD5SUM=4110afe7d7010acbb5c69dd1214fa936
SRC_URL=https://github.com/AbiWord/enchant/releases/download/enchant-1-6-1/$TARBALL
BUNDLE=

SLACKREQ='aspell32 glib32 hunspell32'
SLACKDESC="libenchant32: libenchant32 $PKGVER (Spell checking library)  
libenchant32:  
libenchant32: The enchant package provide a generic interface into various existing 
libenchant32: spell checking libaries.  
libenchant32: 
libenchant32: This contains 32-bit version of the library.
libenchant32: 
libenchant32: 
libenchant32: 
libenchant32: 
libenchant32:
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/enchant* &&
	sed -i -e '/^libenchant_la_LINK/ s|$(AM_V_lt)|& --tag=CC|' \
		src/Makefile.in && # fix compile failure
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf && pkg_build_slackdesc
}



