blob: 59f93e3ab1c3d6df652ccf26f40e4be1ec7f58f4 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/sh -e
# Forgive me father, for I have sinned.
(
cd openssl
./Configure \
--prefix=/usr \
--openssldir=/etc/ssl \
--libdir=lib \
no-unit-test \
no-shared \
linux-x86_64
make depend
make
make DESTDIR="$PWD/pkg" install_sw
)
patch -p1 < python3-always-pip.patch
./configure \
--prefix=/usr \
--enable-shared \
--enable-static \
--with-system-expat \
--with-system-ffi \
--with-openssl="$PWD/openssl/pkg/usr" \
--with-openssl-rpath=no \
--with-ensurepip=yes
make
make DESTDIR="$1" install
ln -s python3 "$1/usr/bin/python"
ln -s pip3 "$1/usr/bin/pip"
# Make static library writable.
chmod -v u+w "$1/usr/lib/libpython"*
|