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

# source: james
TARBALL=python-kivy-$PKGVER.tar.gz
MD5SUM=39f72216071c6b05c7622d5eb544633f
SRC_URL=https://files.pythonhosted.org/packages/source/K/Kivy/Kivy-$PKGVER.tar.gz
BUNDLE=

SLACKREQ='libSDL2 libSDL2-ttf libSDL2-image libSDL2-mixer python3-request python3-pygments' # and opengl basically
SLACKDESC="python3-kivy: python3-kivy $PKGVER (Python GUI framework)
python3-kivy: 
python3-kivy: Kivy is an open-source Python framework for developing GUI apps that 
python3-kivy: work cross-platform, including desktop, mobile and embedded 
python3-kivy: platforms. It is built on top of OpenGL ES 2.0, upports various input 
python3-kivy: devices and has an extensive (and extensible) widget library.
python3-kivy: 
python3-kivy: http://kivy.org/
python3-kivy: https://pypi.org/project/Kivy
python3-kivy: https://github.com/kivy/kivy
python3-kivy:
"

### default pkg_download
### defaulg pkg_prepare
pkg_packageb() {
	rm -r ./root # delete cruft
}

### build
pkg_build() {
	cd /tmp/Kivy* &&
	pkg_build_python3modules &&
	#pkg_build_pip3modules Kivy && # too many dependencies
	pkg_build_slackdesc &&

	# generate and install docs
	mkdir -p /usr/share/doc &&
	cd doc && make html &&
	cp -r build/html /usr/share/doc/kivy &&
	return 0
}
