summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 233fd7df1954412e17cf74ba7fac9a3395863f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Thomas <thomas.aur@brainfuck.space>

pkgname=python-pillow-jpegxl-plugin
_pkgname=pillow-jpegxl-plugin
pkgver=1.3.2
pkgrel=3
pkgdesc="A Python Pillow plugin that adds jxl support"
arch=("any")
url="https://github.com/Isotr0py/$_pkgname"
license=("MIT")
depends=("python" "python-pillow" "libjxl")
makedepends=(python-maturin python-installer patchelf)
#checkdepends=(python-pytest-runner python-pyexiv2)
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b90088d3bda401ee3ca0863262cae60fe455faa94363dd5609e6c9a9c8db8c3c')

build() {
    cd "$_pkgname-$pkgver"
    maturin build --release --features dynamic
}

package() {
    cd "$_pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" target/wheels/*.whl
}

# Not running checks for now: the source tree is not in an importable state
# (Not sure of a clean way to fix this without duplicating a lot of work)
# check() {
#     cd "$_pkgname-$pkgver"
#     python -m pytest
# }