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

# source: james
TARBALL=resynthesizer-gimp-$PKGVER.tar.bz2
MD5SUM=e7495c634abf90789eab64227fbf8fe0
SRC_URL=https://github.com/bootchk/resynthesizer/archive/v${PKGVER}.tar.gz
BUNDLE=

GIMP_COMPAT=2.8

SLACKREQ='gimp glib python'
SLACKDESC="resynthesizer-gimp${GIMP_COMPAT}: resynthesizer-gimp${GIMP_COMPAT} $PKGVER (Resynthesizer Gimp Plugin)
resynthesizer-gimp${GIMP_COMPAT}: 
resynthesizer-gimp${GIMP_COMPAT}: Resynthesizer is a Gimp plug-in for texture synthesis. Given a sample 
resynthesizer-gimp${GIMP_COMPAT}: of a texture, it can create more of that texture. Example usage: 
resynthesizer-gimp${GIMP_COMPAT}: creating more texture, removing objects from images, creating themed 
resynthesizer-gimp${GIMP_COMPAT}: images, etc
resynthesizer-gimp${GIMP_COMPAT}:
resynthesizer-gimp${GIMP_COMPAT}: This plugin is for gimp version $GIMP_COMPAT
resynthesizer-gimp${GIMP_COMPAT}: 
resynthesizer-gimp${GIMP_COMPAT}: http://www.logarithmic.net/pfh/resynthesizer
resynthesizer-gimp${GIMP_COMPAT}: https://github.com/bootchk/resynthesizer
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/resynthesizer* &&
	
	# gcc 7.x fix
	sed -i -e 's|^inline|static &|' lib/engineTypes.h &&
	
	./autogen.sh $CONFFLAGS &&
	make $MAKEFLAGS && make install &&
	
	pkg_build_slackdesc
}


