summaryrefslogtreecommitdiff
path: root/repo/core/python.xibuild
blob: 4383145b89724ed7bb81d6fafaba8ace297b541d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

DEPS=(bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib)

SOURCE=https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
DESC="The Python development environment"

build () {
    ./configure --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-optimizations
    make
    make DESTDIR=$PKG_DEST install 
}

package () {
    ln $PKG_DEST/usr/bin/python3 $PKG_DEST/usr/bin/python
    ln $PKG_DEST/usr/bin/python3 $PKG_DEST/usr/bin/py
}