wok annotate py3k3/receipt @ rev 25301
updated sg3_utils, sg3_utils-dev and libsgutils2 (1.45 -> 1.47)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 08:07:57 2022 +0100 (2022-07-20) |
parents | 16df76e1fc6a |
children |
rev | line source |
---|---|
nneul@18058 | 1 # SliTaz package receipt. |
nneul@18058 | 2 |
nneul@18058 | 3 PACKAGE="py3k3" |
nneul@18058 | 4 VERSION="3.3.6" |
nneul@18058 | 5 CATEGORY="development" |
nneul@18058 | 6 SHORT_DESC="The Python 3000 programming language." |
nneul@18058 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18058 | 8 LICENSE="GPL" |
nneul@18058 | 9 SOURCE="Python" |
nneul@18058 | 10 TARBALL="$SOURCE-$VERSION.tgz" |
nneul@18058 | 11 WEB_SITE="https://www.python.org/download/releases/" |
nneul@18058 | 12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
pascal@18061 | 13 PROVIDE="py3k" |
nneul@18058 | 14 |
al@18077 | 15 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm tk \ |
al@18077 | 16 xorg-libXext" |
pascal@18061 | 17 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \ |
pascal@18061 | 18 ncursesw-dev liblzma-dev" |
nneul@18058 | 19 |
pascal@24694 | 20 # What is the latest version available today? |
pascal@24694 | 21 current_version() |
pascal@24694 | 22 { |
pascal@24694 | 23 wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \ |
pascal@24694 | 24 sed '/>3\.3\./!d;s|.*">||;s|/<.*||' | sort -Vr | sed q |
pascal@24694 | 25 } |
pascal@24694 | 26 |
nneul@18058 | 27 # Rules to configure and make the package. |
nneul@18058 | 28 compile_rules() |
nneul@18058 | 29 { |
nneul@18058 | 30 mkdir -p $DESTDIR/usr/lib/pkgconfig |
nneul@18058 | 31 ./configure --enable-shared \ |
nneul@18058 | 32 --prefix=/usr --infodir=/usr/share/info \ |
nneul@18058 | 33 --mandir=/usr/share/man $CONFIGURE_ARGS && |
nneul@18058 | 34 make && |
nneul@18058 | 35 make DESTDIR=$DESTDIR install |
nneul@18058 | 36 } |
nneul@18058 | 37 |
nneul@18058 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18058 | 39 genpkg_rules() |
nneul@18058 | 40 { |
nneul@18058 | 41 python_version=${VERSION:0:3} |
nneul@18058 | 42 mkdir -p $fs/usr/include/python${python_version}m |
nneul@18058 | 43 cp -a $install/usr/bin $fs/usr |
nneul@18058 | 44 cp -a $install/usr/lib $fs/usr |
nneul@18058 | 45 # needed for python3 to work |
nneul@18058 | 46 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
nneul@18058 | 47 $fs/usr/include/python${python_version}m |
nneul@18058 | 48 rm -f $fs/usr/bin/*-config |
nneul@18058 | 49 } |