# Template file for 'python3-pillow-avif'
pkgname=python3-pillow-avif
version=1.5.2
revision=2
build_style=python3-pep517
hostmakedepends="pkg-config python3-setuptools"
makedepends="python3-devel libavif-devel"
depends="python3-Pillow"
short_desc="Pillow plugin that adds avif support via libavif"
maintainer="zenobit <zen@osowoso.org>"
license="BSD-2-Clause"
homepage="https://github.com/fdintino/pillow-avif-plugin"
changelog="https://raw.githubusercontent.com/fdintino/pillow-avif-plugin/refs/heads/main/CHANGELOG.rst"
distfiles="https://github.com/fdintino/pillow-avif-plugin/archive/refs/tags/v${version}.tar.gz"
checksum=ca224a3ba77cc2ccc5a4e3a7e081c2c0914ea1481fdeb4c4c007e04d8675c5fe

post_patch() {
	vsed -e "s/@@VERSION@@/${version}/" -i setup.py
}

post_install() {
	vlicense LICENSE
}
