mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
34 lines
806 B
Plaintext
34 lines
806 B
Plaintext
# description : Next generation of the python high-level scripting language
|
|
# depends : libffi
|
|
|
|
name=python3
|
|
version=3.7.4
|
|
release=1
|
|
source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz
|
|
pyconfig.h)
|
|
md5sum=(d33e4aae66097051c2eca45ee3604803
|
|
387d5f6d00d2be01ecb87216cac0f88c)
|
|
|
|
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::3}m.so
|
|
chmod -v 755 $PKG/usr/lib/libpython3.so
|
|
|
|
rm $PKG/usr/bin/2to3
|
|
|
|
mv $PKG/usr/include/python3.7m/pyconfig{,-64}.h
|
|
install -m 0644 $SRC/pyconfig.h $PKG/usr/include/python3.7m/
|
|
}
|
|
|
|
|