wok-current view py3k/receipt @ rev 25312

updated smartmontools (7.2 -> 7.3)
author Hans-G?nter Theisgen
date Wed Jul 20 17:27:26 2022 +0100 (2022-07-20)
parents e04d8d743189
children ac34e9209f8e
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="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \
17 ncursesw-dev liblzma-dev wget"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://www.python.org/downloads/ 2>/dev/null | \
23 sed '/Download Python [0-9]/!d;s|.*Python ||;s|<.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir -p $DESTDIR/usr/lib/pkgconfig build
30 ./configure --enable-shared \
31 --enable-optimizations \
32 --prefix=/usr --infodir=/usr/share/info \
33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 python_version=${VERSION:0:3}
42 mkdir -p $fs/usr/include/python${python_version}m
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 # needed for python3 to work
46 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
47 $fs/usr/include/python${python_version}m
48 rm -f $fs/usr/bin/*-config
49 }