mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
Add aur/python-imageio
This is a dep for aur/stressberry
This commit is contained in:
parent
b019014997
commit
4b6044a4a3
1 changed files with 36 additions and 0 deletions
36
aur/python-imageio/PKGBUILD
Normal file
36
aur/python-imageio/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
||||
# Contributer: Leo Mao <leomaoyw at gmail dot com>
|
||||
|
||||
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:<Paste>
|
Loading…
Reference in a new issue