wok view py3k3/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents 16df76e1fc6a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k3"
4 VERSION="3.3.6"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3000 programming language."
7 MAINTAINER="nneul@neulinger.org"
8 LICENSE="GPL"
9 SOURCE="Python"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="https://www.python.org/download/releases/"
12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL"
13 PROVIDE="py3k"
15 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm tk \
16 xorg-libXext"
17 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \
18 ncursesw-dev liblzma-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \
24 sed '/>3\.3\./!d;s|.*">||;s|/<.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $DESTDIR/usr/lib/pkgconfig
31 ./configure --enable-shared \
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 }