python fix
This commit is contained in:
1 parent
96fd46dd5d
commit
0b6e114510
1 file changed
+9
-11
@@ -9,7 +9,7 @@ maintainer='sulincix'
|
||||
license=('custom')
|
||||
source=("https://www.python.org/ftp/python/$version/Python-$version.tar.xz"
|
||||
'turkman.patch')
|
||||
depends=('bzip2' 'gdbm' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'sqlite')
|
||||
depends=('bzip2' 'gdbm' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'mpdecimal')
|
||||
makedepends=( )
|
||||
sha256sums=('f6d419a6d8743ab26700801b4908d26d97e8b986e14f95de31b32de2b0e79554'
|
||||
'SKIP')
|
||||
@@ -17,35 +17,33 @@ expat_depends=('expat')
|
||||
arch=('x86_64')
|
||||
group=(dev.lang python)
|
||||
|
||||
export CFLAGS="-O2 -s -DNCURSES_WIDECHAR=1"
|
||||
export CXXFLAGS="-O2 -s -DNCURSES_WIDECHAR=1"
|
||||
export LDFLAGS="-lncursesw"
|
||||
export CFLAGS="-O2 -s -flto -ffat-lto-objects"
|
||||
export CXXFLAGS="-O2 -s -flto -ffat-lto-objects"
|
||||
|
||||
export LC_CTYPE=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
cd Python-$version
|
||||
|
||||
setup(){
|
||||
patch -Np1 -i "../turkman.patch"
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib \
|
||||
--libdir=/usr/lib64 \
|
||||
--enable-ipv6 \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--enable-optimizations \
|
||||
--enable-shared \
|
||||
--with-lto \
|
||||
--with-computed-gotos \
|
||||
--with-dbmliborder=gdbm:ndbm \
|
||||
--with-system-expat \
|
||||
--with-system-libmpdec
|
||||
}
|
||||
|
||||
build(){
|
||||
make $jobs
|
||||
sed -i 's/^all:.*$/all: build_all/' Makefile
|
||||
env -i PATH=$PATH make $jobs
|
||||
}
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
mv ${DESTDIR}/usr/lib{,64}
|
||||
env -i PATH=$PATH make install $jobs DESTDIR=$DESTDIR
|
||||
# this symlinks provided by main python metapackage
|
||||
for bin in pydoc3 idle3 python3 python3-config pip3 2to3; do
|
||||
rm -f ${DESTDIR}/usr/bin/$bin
|
||||
|
||||
Reference in new issue
Block a user