wok view python-pil/receipt @ rev 25019
updated openjpeg2 and openjpeg2-dev (2.3.1 -> 2.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 18 07:22:38 2022 +0100 (2022-05-18) |
parents | 51ef9f5adf6d |
children | c85bdee1fe53 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pil"
4 VERSION="1.1.7"
5 CATEGORY="development"
6 SHORT_DESC="Python Imaging Library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/PIL/"
11 SOURCE="Imaging"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://effbot.org/downloads/$TARBALL"
15 DEPENDS="freetype jpeg python tk zlib"
16 BUILD_DEPENDS="jpeg-dev python python-dev zlib-dev"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | sed '/ PIL /!d;s|.*PIL ||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py build &&
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
34 }
36 # Remove old package.
37 post_install()
38 {
39 [ ! -d "$1/var/lib/tazpkg/installed/pil" ] ||
40 rm -rf "$1/var/lib/tazpkg/installed/pil"
41 }