### this file is sourced not run
PKGVER=3.11.2
PKGARCH=i686 # we build 32-bit version so installing in /lib is correct, no need to patch for /lib64

# LFS 11.3
TARBALL=Python-$PKGVER.tar.xz
MD5SUM=a957cffb58a89303b62124896881950b
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

SLACKREQ=
SLACKDESC="tools-python3: tools-python3 $PKGVER (Build-system Python)
tools-python3: 
tools-python3: The Python 3 package contains the Python development environment. It 
tools-python3: is useful for object-oriented programming, writing scripts, 
tools-python3: prototyping large programs, or developing entire applications.
tools-python3: 
tools-python3: This is the CLFS /tools package, part of the build system, 
tools-python3: and not for general use. 
tools-python3: 
tools-python3: DO NOT INSTALL THIS PACKAGE unless you know what you're doing.
tools-python3:
"

### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	pkg_download_bundle $1 $2
}

### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/Python* &&

	CC="gcc ${BUILD32}"           \
	./configure --prefix=/tools   \
				--enable-shared   \
				--without-ensurepip &&
	make $MAKEFLAGS && make install &&
	ln -sfv /tools/bin/python3 /usr/bin &&
	
	pkg_build_slackdesc
}


