mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
29 lines
780 B
Plaintext
29 lines
780 B
Plaintext
# description : Next generation of the python high-level scripting language
|
|
# depends : libffi sqlite
|
|
|
|
name=python3
|
|
version=3.9.7
|
|
release=1
|
|
source="https://www.python.org/ftp/python/$version/Python-$version.tar.xz
|
|
pyconfig.h"
|
|
|
|
build() {
|
|
cd Python-$version
|
|
|
|
CXX="/usr/bin/g++" \
|
|
./configure --prefix=/usr \
|
|
--enable-shared \
|
|
--with-system-expat \
|
|
--with-system-ffi \
|
|
--without-ensurepip
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
chmod -v 755 $PKG/usr/lib/libpython${version%.*}.so
|
|
chmod -v 755 $PKG/usr/lib/libpython3.so
|
|
|
|
mv $PKG/usr/include/python${version%.*}/pyconfig.h \
|
|
$PKG/usr/include/python${version%.*}/pyconfig-64.h
|
|
install -m 0644 $SRC/pyconfig.h $PKG/usr/include/python${version%.*}/
|
|
}
|