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

PYTHON_VER=${PKGVER%.*}

# source: LFS 11.3 updated to BLFS SVN r890 updated to 3.11.9
TARBALL=Python-$PKGVER.tar.xz
MD5SUM=22ea467e7d915477152e99d5da856ddc
SRC_URL=https://www.python.org/ftp/python/$PKGVER/$TARBALL
#BUNDLE=fatdog-base-11.3.tar
#SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$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:
"

### override download for LFS sources bundle
#pkg_download() {
#	pkg_download_bundle
#}

### 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/python$PYTHON_VER/lib-dynload/_tkinter.so &&
		
	pkg_build_slackdesc
}


