wok-next annotate py3k3/receipt @ rev 20859
Update ALSA stack (1.1.6)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 27 13:35:43 2018 +0300 (2018-06-27) |
parents | 526d615b9f76 |
children | 4e6503d7a19f |
rev | line source |
---|---|
al@20112 | 1 # SliTaz package receipt v2. |
nneul@18058 | 2 |
nneul@18058 | 3 PACKAGE="py3k3" |
nneul@18058 | 4 VERSION="3.3.6" |
nneul@18058 | 5 CATEGORY="development" |
al@20112 | 6 SHORT_DESC="The Python 3000 programming language" |
nneul@18058 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18058 | 8 LICENSE="GPL" |
al@20112 | 9 WEB_SITE="https://www.python.org/download/releases/" |
al@20112 | 10 |
nneul@18058 | 11 SOURCE="Python" |
nneul@18058 | 12 TARBALL="$SOURCE-$VERSION.tgz" |
nneul@18058 | 13 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
nneul@18058 | 14 |
pascal@20098 | 15 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \ |
al@20452 | 16 ncurses-dev xz-dev bzip2-dev" |
al@20112 | 17 SPLIT="py3k3-dev" |
al@20111 | 18 COOKOPTS="!zip" |
nneul@18058 | 19 |
nneul@18058 | 20 # Rules to configure and make the package. |
nneul@18058 | 21 compile_rules() |
nneul@18058 | 22 { |
nneul@18058 | 23 mkdir -p $DESTDIR/usr/lib/pkgconfig |
al@20112 | 24 ./configure \ |
al@20112 | 25 --enable-shared \ |
al@20112 | 26 --prefix=/usr \ |
al@20112 | 27 --infodir=/usr/share/info \ |
al@20112 | 28 --mandir=/usr/share/man \ |
al@20112 | 29 $CONFIGURE_ARGS && |
nneul@18058 | 30 make && |
nneul@18058 | 31 make DESTDIR=$DESTDIR install |
nneul@18058 | 32 } |
nneul@18058 | 33 |
nneul@18058 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18058 | 35 genpkg_rules() |
nneul@18058 | 36 { |
al@20112 | 37 case $PACKAGE in |
al@20112 | 38 py3k3) |
al@20112 | 39 python_version=${VERSION:0:3} |
al@20112 | 40 mkdir -p $fs/usr/include/python${python_version}m |
al@20112 | 41 cp -a $install/usr/bin $fs/usr |
al@20112 | 42 cp -a $install/usr/lib $fs/usr |
al@20112 | 43 # needed for python3 to work |
al@20112 | 44 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
al@20112 | 45 $fs/usr/include/python${python_version}m |
al@20112 | 46 rm -f $fs/usr/bin/*-config |
al@20112 | 47 DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver \ |
al@20112 | 48 ncurses gdbm tk xorg-libXext" |
al@20112 | 49 PROVIDE="py3k" |
al@20112 | 50 ;; |
al@20112 | 51 *-dev) |
al@20112 | 52 mkdir -p $fs/usr/bin |
al@20112 | 53 cp -a $install/usr/include $fs/usr |
al@20112 | 54 cp -a $install/usr/bin/*-config $fs/usr/bin |
al@20112 | 55 chmod 755 $fs/usr/bin/*-config |
al@20112 | 56 rm $fs/usr/include/*/pyconfig.h |
al@20112 | 57 ;; |
al@20112 | 58 esac |
nneul@18058 | 59 } |