wok-current view py3k/receipt @ rev 20389
Add tklauncher
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 23 12:16:43 2018 +0200 (2018-06-23) |
parents | 16df76e1fc6a |
children | 605c88c58754 |
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 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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR/usr/lib/pkgconfig
23 ./configure --enable-shared \
24 --prefix=/usr --infodir=/usr/share/info \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 python_version=${VERSION:0:3}
34 mkdir -p $fs/usr/include/python${python_version}m
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 # needed for python3 to work
38 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
39 $fs/usr/include/python${python_version}m
40 rm -f $fs/usr/bin/*-config
41 }