Files
ports/core/python3/spkgbuild
2020-05-20 00:47:25 +08:00

34 lines
845 B
Plaintext

# description : Next generation of the python high-level scripting language
# depends : libffi sqlite
name=python3
version=3.8.3
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
case $XHOST in
*-musl) continue;;
*)
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%.*}/
;;
esac
}