blob: f74b5f8b1627b075c1f5d6a7c9d9e3640b07f396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
name=python
version=3.13.3
release=2
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz
musl-pgo-tests.patch
libressl.diff"
build() {
# musl workaround
export ac_cv_file__dev_ptmx=yes
export ac_cv_file__dev_ptc=no
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--without-ensurepip \
--enable-shared \
--with-system-expat \
--enable-optimization
make
make DESTDIR=$PKG altinstall
ln -s python${version%.*} $PKG/usr/bin/python
ln -s python${version%.*} $PKG/usr/bin/python3
}
|