wok-6.x view py3k/receipt @ rev 19554
upx: add doc links
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 11 15:06:50 2016 +0100 (2016-12-11) |
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 }