wok-current annotate py3k/receipt @ rev 24703

updated ladspa and ladspa-dev (1.15 -> 1.17)
author Hans-G?nter Theisgen
date Mon Mar 14 11:12:41 2022 +0100 (2022-03-14)
parents e04d8d743189
children ac34e9209f8e
rev   line source
pascal@1822 1 # SliTaz package receipt.
pascal@1822 2
pascal@1822 3 PACKAGE="py3k"
pascal@20460 4 VERSION="3.7.0"
pascal@1822 5 CATEGORY="development"
pascal@1822 6 SHORT_DESC="The Python 3000 programming language."
pascal@1822 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15088 8 LICENSE="GPL"
pascal@1822 9 SOURCE="Python"
pascal@18206 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@18206 11 WEB_SITE="https://www.python.org/download/releases/"
pascal@18206 12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL"
pascal@1822 13
pascal@15088 14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
pascal@15088 15 tk xorg-libXext"
pascal@15094 16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \
pascal@18206 17 ncursesw-dev liblzma-dev wget"
pascal@15088 18
pascal@24459 19 # What is the latest version available today?
pascal@24459 20 current_version()
pascal@24459 21 {
pascal@24459 22 wget -O - https://www.python.org/downloads/ 2>/dev/null | \
pascal@24459 23 sed '/Download Python [0-9]/!d;s|.*Python ||;s|<.*||;q'
pascal@24459 24 }
pascal@24459 25
pascal@1822 26 # Rules to configure and make the package.
pascal@1822 27 compile_rules()
pascal@1822 28 {
pascal@20461 29 mkdir -p $DESTDIR/usr/lib/pkgconfig build
pascal@15094 30 ./configure --enable-shared \
pascal@20460 31 --enable-optimizations \
pascal@1822 32 --prefix=/usr --infodir=/usr/share/info \
pascal@1822 33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1822 34 make &&
slaxemulator@11027 35 make DESTDIR=$DESTDIR install
pascal@1822 36 }
pascal@1822 37
pascal@1822 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1822 39 genpkg_rules()
pascal@1822 40 {
slaxemulator@9619 41 python_version=${VERSION:0:3}
slaxemulator@9619 42 mkdir -p $fs/usr/include/python${python_version}m
pascal@15088 43 cp -a $install/usr/bin $fs/usr
pascal@15088 44 cp -a $install/usr/lib $fs/usr
slaxemulator@9619 45 # needed for python3 to work
pascal@15088 46 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
slaxemulator@9619 47 $fs/usr/include/python${python_version}m
pascal@1822 48 rm -f $fs/usr/bin/*-config
pascal@1822 49 }