core/python to 3.10.8-2

This commit is contained in:
Kevin Mihelich 2022-10-19 12:58:27 +00:00
parent d4452cfd67
commit 958c06a7e1

View file

@ -13,7 +13,7 @@ shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.10.8
pkgrel=1
pkgrel=2
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
arch=('x86_64')
@ -107,9 +107,6 @@ package_python() {
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
# Split tests
rm -r "$pkgdir"/usr/lib/python*/{test,ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
# Why are these not done by default...
ln -s python3 "${pkgdir}"/usr/bin/python
ln -s python3-config "${pkgdir}"/usr/bin/python-config
@ -124,6 +121,13 @@ package_python() {
# License
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Split tests
cd "$pkgdir"/usr/lib/python*/
rm -r {ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
cd test
# FS#76193
rm -r !(support)
}
package_python-tests() {
@ -135,6 +139,8 @@ package_python-tests() {
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" libinstall
cd "$pkgdir"/usr/lib/python*/
rm -r !(test|ctypes|distutils|idlelib|lib2to3|sqlite3|tkinter|unittest)
cd "$pkgdir"/usr/lib/python*/test
rm -r support
cd "$pkgdir"/usr/lib/python*/ctypes
rm -r !(test)
cd "$pkgdir"/usr/lib/python*/distutils