Files
ports/core/python3/spkgbuild
2018-05-02 21:34:31 +08:00

29 lines
648 B
Plaintext

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