pkgname=python-imagesize pkgver=1.4.1 pkgrel=1 pkgdesc="Analyzes JPEG/JPEG 2000/PNG/GIF/TIFF/SVG/Netpbm/WebP image headers and returns image size or DPI" arch=('x86_64') url="https://github.com/shibukawa/imagesize_py" license=('MIT') depends=('python') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(https://github.com/shibukawa/imagesize_py/archive/${pkgver}/${pkgname#*-}_py-${pkgver}.tar.gz) sha256sums=(c353adbba9d9e92fc880ff85279c362a9d4fc580c4783d1949e905200cb8b15b) build() { cd ${pkgname#*-}_py-${pkgver} python3 -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${pkgname#*-}_py-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }