2021-01-12 11:06:46 +00:00
|
|
|
pkgname=python
|
2021-12-26 12:40:14 +00:00
|
|
|
pkgver=3.9.7
|
2021-01-12 11:06:46 +00:00
|
|
|
bad=""
|
|
|
|
ext="doc"
|
|
|
|
|
|
|
|
fetch() {
|
2021-05-21 09:33:16 +00:00
|
|
|
curl "https://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
2021-01-12 11:06:46 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
mv Python-$pkgver $pkgname-$pkgver
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2021-06-24 21:13:56 +00:00
|
|
|
--build=$TARGET \
|
|
|
|
--host=$TARGET \
|
2021-01-31 11:09:14 +00:00
|
|
|
--with-system-ffi=true \
|
2021-09-11 08:24:20 +00:00
|
|
|
--with-ssl-default-suites=openssl \
|
2021-01-12 11:06:46 +00:00
|
|
|
ax_cv_c_float_words_bigendian=no
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/test
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/ctypes/test
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/distutils/tests
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/idlelib/idle_test
|
|
|
|
rm -r $pkgidr/usr/lib/python3.9/lib2to3/tests
|
|
|
|
rm -r $pkgidr/usr/lib/python3.9/sqlite3/test
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/tkinter/test
|
|
|
|
rm -r $pkgdir/usr/lib/python3.9/unittest/test
|
|
|
|
rm -r $pkgdir/usr/share
|
|
|
|
ln -sr $pkgdir/usr/bin/python3 $pkgdir/usr/bin/python
|
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm -r $pkgdir/lib
|
|
|
|
rm -r $pkgdir/bin
|
|
|
|
rm -r $pkgdir/include
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|