wok annotate python-pil/receipt @ rev 21519
mosh: update patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 03 16:47:04 2019 +0200 (2019-05-03) |
parents | 1067bb7f1e24 |
children | fdcd466dc27c |
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" |
claudinei@3415 | 15 BUILD_DEPENDS="python python-dev jpeg-dev zlib-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 } |