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

# source: BLFS 11.3
TARBALL=gimp-$PKGVER.tar.bz2
MD5SUM=fd99bd8336c0d3aa09598e68d6e4a4d9
SRC_URL=https://download.gimp.org/pub/gimp/v2.10/$TARBALL
BUNDLE=

SLACKREQ='libgegl => 0.4.4-x86_64-1
libgexiv2 glib-networking gtk2 libjpeg-turbo libmypaint librsvg libtiff
lcms2 mypaint-brushes poppler libdbus-glib libgudev iso-codes python-pygtk
python-pygobject python-pycairo libaalib libmng libwebp libopenjpeg2 ffmpeg'
SLACKDESC="gimp: gimp $PKGVER (GNU Image Manipulation Program)  
gimp:  
gimp: The Gimp package contains the GNU Image Manipulation Program which is 
gimp: useful for photo retouching, image composition and image authoring.  
gimp: 
gimp: 
gimp: 
gimp: 
gimp: 
gimp: 
gimp:
"

### default pkg_download
### default pkg_prepare
### default pkg_package

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --without-gvfs"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv /usr/bin/gimptool-2.0{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/gimptool-2.0 &&
	
	# de-duplicate menu entries
	sed -i 's/^Categories=.*/Categories=Graphics;/' /usr/share/applications/gimp.desktop &&

	# clear fontconfig cache
	rm -rf /var/cache/fontconfig /var/db/fontconfig &&
	find /usr/share/fonts -name .uuid -delete
}


