From 4b6044a4a3a6e76addee0f0a84ea4740d20ac998 Mon Sep 17 00:00:00 2001 From: graysky Date: Wed, 6 Dec 2023 16:13:49 -0500 Subject: [PATCH] Add aur/python-imageio This is a dep for aur/stressberry --- aur/python-imageio/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 aur/python-imageio/PKGBUILD diff --git a/aur/python-imageio/PKGBUILD b/aur/python-imageio/PKGBUILD new file mode 100644 index 000000000..cad0adbe7 --- /dev/null +++ b/aur/python-imageio/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: graysky +# Contributer: Leo Mao + +pkgname="python-imageio" +_pkgname="imageio" +pkgver=2.33.0 +pkgrel=2 +pkgdesc="a Python library that provides an easy interface to read and write a wide range of image data" +arch=('any') +_github="imageio/imageio" +_pypiname="imageio" +url="https://github.com/imageio/imageio" +license=('BSD') +depends=('python-numpy' 'python-pillow') +optdepends=('python-imageio-ffmpeg' 'python-av' 'freeimage' 'python-astropy' 'python-simpleitk' 'python-tifffile') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/imageio/imageio/archive/v${pkgver}.tar.gz") +sha256sums=('ca7f861a2d39b3719d031077ecd3be8fb07507c1c9747bbd721284ea4ee1cb7a') + +build() { + msg "Building Python 3" + cd "$srcdir/${_pkgname}-${pkgver}" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/${_pkgname}-${pkgver}" + python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" + + # remove utilities for downloading binary dependencies + rm $pkgdir/usr/bin/{imageio_download_bin,imageio_remove_bin} + rmdir $pkgdir/usr/bin +} + +# vim:set ts=2 sw=2 et: