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

# source: BLFS 11.3
TARBALL=inkscape-$PKGVER.tar.xz
MD5SUM=490c40bbb3ce3441ceee88e61775bbf4
SRC_URL=https://inkscape.org/gallery/item/37360/$TARBALL
BUNDLE=

SLACKREQ='libgc libboost-common libgsl gtk3mm libsoup2 libxslt poppler libpopt
lcms2 potrace libdoubleconversion'
SLACKDESC="inkscape: inkscape $PKGVER (SVG editor)  
inkscape:  
inkscape: Inkscape is a what you see is what you get Scalable Vector Graphics 
inkscape: editor. It is useful for creating, viewing and changing SVG images. 
inkscape: It is also a versatile vector drawing program.  
inkscape: 
inkscape: https://inkscape.org/
inkscape: 
inkscape: 
inkscape: 
inkscape: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/inkscape* &&

	# Fatdog lib64 patch
	sed -i -e "s|lib/|${LIBDIR}/|" src/CMakeLists.txt
}

### default pkg_package
### build
pkg_build() {
	CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_BUILD_TYPE=Release"

	pkg_build_cmake &&
	
	# keep the folder because it could include extensions depending which other packages are installed
	ln -s inkscape/libinkscape_base.so /usr/$LIBDIR/libinkscape_base.so &&

	pkg_build_slackdesc
}
