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

# source: james
TARBALL=Python-$PKGVER.tar.xz
MD5SUM=9f49654a4d6f733ff3284ab9d227e9fd
SRC_URL=http://www.python.org/ftp/python/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='python3 tk'
SLACKDESC="python3-tk: python3-tk $PKGVER (Tk interface for Python3)
python3-tk: 
python3-tk: This is a python module providing support to interface to Tcl/Tk 
python3-tk: graphic library. You need this to run IDLE, the built-in Python IDE.
python3-tk: 
python3-tk: This library is for python3.
python3-tk: 
python3-tk: 
python3-tk: 
python3-tk: 
python3-tk:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/Python-*/Modules &&
	
	gcc  $(python3-config --libs --includes) $(pkg-config --cflags --libs tk) \
		-fPIC -shared _tkinter.c tkappinit.c -DWITH_APPINIT \
		-o /usr/$LIBDIR/python3.6/lib-dynload/_tkinter.so &&
		
	pkg_build_slackdesc
}


