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