wok-next view py3k/receipt @ rev 20074
Up dooble, smtube
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 05:01:33 2017 +0200 (2017-10-25) |
parents | 3d39589d41a0 |
children | 2809ecb8c754 |
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k"
4 VERSION="3.4.3"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3000 programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.python.org/download/releases/"
11 SOURCE="Python"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL"
15 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXScrnSaver ncurses gdbm \
16 tk xorg-libXext"
17 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \
18 ncurses-dev liblzma-dev bzip2-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mkdir -p $DESTDIR/usr/lib/pkgconfig
25 ./configure \
26 --enable-shared \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 python_version=${VERSION:0:3}
36 mkdir -p $fs/usr/include/python${python_version}m
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 # needed for python3 to work
40 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
41 $fs/usr/include/python${python_version}m
42 rm -f $fs/usr/bin/*-config
43 }