wok view py3k/receipt @ rev 16741
Add trash-cli
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Jun 09 20:56:42 2014 +0100 (2014-06-09) |
parents | d7dc17383311 |
children | 16df76e1fc6a |
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k"
4 VERSION="3.2.2"
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.bz2"
11 WEB_SITE="http://www.python.org/download/releases/3.2/"
12 WGET_URL="http://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"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 mkdir -p $DESTDIR/usr/lib/pkgconfig
24 ./configure --enable-shared \
25 --prefix=/usr --infodir=/usr/share/info \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 python_version=${VERSION:0:3}
35 mkdir -p $fs/usr/include/python${python_version}m
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 # needed for python3 to work
39 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
40 $fs/usr/include/python${python_version}m
41 rm -f $fs/usr/bin/*-config
42 }