wok-next annotate python-pil/receipt @ rev 20297
Up spl (0.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 09 21:37:23 2017 +0100 (2017-11-09) |
parents | 9e01bc6321ea |
children | 2cd2ab749160 |
rev | line source |
---|---|
claudinei@3415 | 1 # SliTaz package receipt. |
claudinei@3415 | 2 |
claudinei@3415 | 3 PACKAGE="python-pil" |
claudinei@3415 | 4 VERSION="1.1.6" |
claudinei@3415 | 5 CATEGORY="development" |
claudinei@3415 | 6 SHORT_DESC="Python Imaging Library." |
claudinei@3415 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
claudinei@3415 | 9 SOURCE="Imaging" |
claudinei@3415 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3415 | 11 WEB_SITE="http://www.pythonware.com/products/pil/" |
claudinei@3415 | 12 WGET_URL="http://effbot.org/downloads/$TARBALL" |
pascal@15379 | 13 |
pascal@5031 | 14 DEPENDS="python jpeg zlib freetype tk" |
pascal@19934 | 15 BUILD_DEPENDS="python python-dev jpeg-dev zlib-dev tk-dev" |
claudinei@3415 | 16 |
claudinei@3415 | 17 # Rules to configure and make the package. |
claudinei@3415 | 18 compile_rules() |
claudinei@3415 | 19 { |
claudinei@3415 | 20 python setup.py build && |
pascal@15379 | 21 python setup.py install --root=$DESTDIR |
claudinei@3415 | 22 } |
claudinei@3415 | 23 |
claudinei@3415 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3415 | 25 genpkg_rules() |
claudinei@3415 | 26 { |
claudinei@3415 | 27 mkdir -p $fs |
pascal@15379 | 28 cp -a $install/usr $fs |
claudinei@3415 | 29 } |
claudinei@3415 | 30 |
claudinei@3415 | 31 # Remove old package. |
claudinei@3415 | 32 post_install() |
claudinei@3415 | 33 { |
pascal@18730 | 34 [ ! -d "$1/var/lib/tazpkg/installed/pil" ] || |
pascal@18730 | 35 rm -rf "$1/var/lib/tazpkg/installed/pil" |
claudinei@3415 | 36 } |