python 3.12.7-1

This commit is contained in:
xhaa123 2024-10-14 22:24:27 +08:00
parent 615a292fd1
commit 1956a6858d

View File

@ -5,7 +5,7 @@
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python
pkgver=3.12.2
pkgver=3.12.7
pkgrel=1
pkgdesc="The Python programming language"
arch=('x86_64')
@ -15,15 +15,15 @@ depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libxcrypt' 'openssl' 'zlib' 'tzdata')
makedepedns=('sqlite')
source=(https://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.xz
https://www.python.org/ftp/python/doc/${pkgver}/python-${pkgver}-docs-html.tar.bz2
${pkgname}-${pkgver}-site-packages-lib64.patch)
sha256sums=(be28112dac813d2053545c14bf13a16401a21877f1a69eb6ea5d84c4a0f3d870
97813b3a32e8b573ada8e3a1153e2fd7c0b31167662bf501ee495a37615c511b
${pkgname}-3.12.2-site-packages-lib64.patch)
sha256sums=(24887b92e2afd4a2ac602419ad4b596372f67ac9b077190f459aba390faf5550
9f2792b63230a4ea5f68b800bca87707ce6c7e69da66e1610bc2385a7da9281a
83f0e0d43173057e1b29d503ab0479d24ada51aadf8b62e2d484b95d211478f5)
prepare() {
cd Python-${pkgver}
patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-site-packages-lib64.patch
patch -Np1 -i ${srcdir}/${pkgname}-3.12.2-site-packages-lib64.patch
}
@ -31,7 +31,7 @@ build() {
cd Python-${pkgver}
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
${CONFIGURE} \
--enable-shared \
--with-system-expat \
@ -55,5 +55,5 @@ package() {
install -v -dm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/html
cp -R --no-preserve=mode ${srcdir}/${pkgname}-${pkgver}-docs-html/* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/html
cp -R --no-preserve=mode ${srcdir}/${pkgname}-${pkgver%.*}-docs-html/* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/html
}