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

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

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

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


