eth0s/ports/core/python3/Pkgfile
2022-04-09 08:19:46 +08:00

29 lines
875 B
Text
Executable file

# Description: Next generation of the python high-level scripting language
# URL:
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
# Depends on: libffi
name=python3
version=3.10.4
release=1
source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz
pyconfig.h)
build() {
cd Python-$version
./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%.*}/
}