wok-current annotate python-pil/receipt @ rev 24288
fail2ban: add log4j-jndi.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 13 18:29:05 2022 +0000 (2022-01-13) |
parents | fdcd466dc27c |
children | 51ef9f5adf6d |
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@24288 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
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 } |