#!/usr/bin/env bash
name='py3-pillow'
release='6'
version='11.2.1'
url='https://python-pillow.org/'
description='Python Imaging Library'
email='brkt8khn@gmail.com'
maintainer='brkt8khn'
license=('BSD')
source=("https://github.com/python-pillow/Pillow/archive/refs/tags/${version}.tar.gz")
depends=(python freetype lcms2  libtiff  libxcb)
makedepends=(py3-build py3-installer py3-wheel py3-setuptools libwebp)
sha256sums=('67dd6d40e282fd3b50189bd7f68a6e9b8e59b297d3684cb35ab107e7aec8379e')
group=(dev.python)
uses=()
arch=('x86_64')

cd "Pillow"-$version

build(){
    python3 -m build
}

package(){
    python3 -m installer --destdir="$DESTDIR" dist/*.whl
}