blob: 2902c0f61d0d3f7fd2b0f7f6fc61b5e5ea77a63f (
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
|
name=python
version=3.14.5
release=1
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz
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
}
|