wok-current view py3k/receipt @ rev 25732

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:09:35 2024 +0000 (6 weeks ago)
parents ac34e9209f8e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k"
4 VERSION="3.7.0"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3000 programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="Python"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://www.python.org/download/releases/"
12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL"
14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
15 tk xorg-libXext"
16 BUILD_DEPENDS="bzip2-dev readline-dev gdbm-dev openssl-dev sqlite-dev \
17 zlib-dev tk-dev ncursesw-dev liblzma-dev wget"
19 HOST_ARCH="i486 x86_64"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://www.python.org/downloads/ 2>/dev/null | \
25 sed '/Download Python [0-9]/!d;s|.*Python ||;s|<.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 mkdir -p $DESTDIR/usr/lib/pkgconfig build
32 ./configure --enable-shared \
33 --enable-optimizations \
34 --prefix=/usr --infodir=/usr/share/info \
35 --mandir=/usr/share/man $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 python_version=${VERSION:0:3}
44 mkdir -p $fs/usr/include/python${python_version}m
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 # needed for python3 to work
48 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
49 $fs/usr/include/python${python_version}m
50 rm -f $fs/usr/bin/*-config
51 }