Files
ports/core/python3/spkgbuild
2018-06-22 22:12:54 +08:00

29 lines
648 B
Plaintext

# description : Next generation of the python high-level scripting language
# depends : libffi
name=python3
version=3.6.5
release=1
source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz)
md5sum=(9f49654a4d6f733ff3284ab9d227e9fd)
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
}