smlinux/base/python3/python3.SMBuild
PktSurf fd5cb987b4 Renamed and repacked python tarball in base
Removed executable bit from some python package build files in base
2024-10-29 15:46:43 +05:30

57 lines
No EOL
1.6 KiB
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=python3
version=3.9.20
build=1sml
homepage="https://www.python.org/"
download="https://www.python.org/ftp/python/$version/Python-$version.tar.xz"
desc="object-oriented interpreted programming language"
requires="libffi expat file openssl sqlite libpng"
noautoconfsite=1
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/musl-find_library.patch
applypatch $srcdir/python3.no-static-library.diff
}
build() {
LDFLAGS="-lncursesw -lterminfo" \
./configure \
--prefix=/usr \
--with-system-expat \
--with-system-ffi \
--without-ensurepip \
--enable-shared \
--enable-ipv6 \
--enable-loadable-sqlite-extensions
make $MAKEFLAGS
make -j1 install maninstall DESTDIR=$pkg
cp LICENSE $pkgdocs/
for test in sqlite3/test email/test ctypes/test test\
unittest/test tkinter/test \
bsddb/test json/tests lib2to3/tests\
distutils/tests tests ; do
rm -rf "$pkg"/usr/lib/python3.9/"$test"
done
(
cd $pkg/usr/bin ; ln -s python3 python
)
mkfinalpkg
}
sha512sums="
f0ed1d5b97023bf0ab007fa3dc6d7197b3944856c7bab552cd762163d7fdfdd7757f63adabbf1a7d7db7dd59f02328f8865e661559eabb8e5ad3e5692951023b python-3.9.20.tar.lz
ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch
a579ca09bdcf08c9d39e75df4294dc310be4ed313431b1e7607f1e44ae22da8840f5658c5a7186bc4d7c89e1c7eec4fdfb81f6a8fb17456abe7b25c5c5bdfdf3 python3.no-static-library.diff
"