wok annotate python-pil/receipt @ rev 25374
updated tslib and tslib-dev (1.21 -> 1.22)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 29 15:53:36 2022 +0100 (2022-07-29) |
parents | bd7510903310 |
children |
rev | line source |
---|---|
claudinei@3415 | 1 # SliTaz package receipt. |
claudinei@3415 | 2 |
claudinei@3415 | 3 PACKAGE="python-pil" |
Hans-G?nter@23527 | 4 VERSION="1.1.7" |
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" |
Hans-G?nter@23527 | 9 WEB_SITE="https://pypi.org/project/PIL/" |
Hans-G?nter@23527 | 10 |
claudinei@3415 | 11 SOURCE="Imaging" |
claudinei@3415 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@25102 | 13 WGET_URL="https://web.archive.org/web/20110204201902if_/http://effbot.org/media/downloads/$TARBALL" |
pascal@15379 | 14 |
Hans-G?nter@23527 | 15 DEPENDS="freetype jpeg python tk zlib" |
Hans-G?nter@23527 | 16 BUILD_DEPENDS="jpeg-dev python python-dev zlib-dev" |
claudinei@3415 | 17 |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24302 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/ PIL /!d;s|.*PIL ||' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
claudinei@3415 | 23 # Rules to configure and make the package. |
claudinei@3415 | 24 compile_rules() |
claudinei@3415 | 25 { |
claudinei@3415 | 26 python setup.py build && |
pascal@15379 | 27 python setup.py install --root=$DESTDIR |
claudinei@3415 | 28 } |
claudinei@3415 | 29 |
claudinei@3415 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3415 | 31 genpkg_rules() |
claudinei@3415 | 32 { |
Hans-G?nter@23527 | 33 cp -a $install/usr $fs |
claudinei@3415 | 34 } |
claudinei@3415 | 35 |
claudinei@3415 | 36 # Remove old package. |
claudinei@3415 | 37 post_install() |
claudinei@3415 | 38 { |
pascal@18730 | 39 [ ! -d "$1/var/lib/tazpkg/installed/pil" ] || |
pascal@18730 | 40 rm -rf "$1/var/lib/tazpkg/installed/pil" |
claudinei@3415 | 41 } |