wok-current annotate python-pil/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | 1df6fa555414 |
children | bd7510903310 |
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" |
claudinei@3415 | 13 WGET_URL="http://effbot.org/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 } |