[arch-commits] Commit in python-imagesize/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sun Sep 4 19:00:08 UTC 2022
Date: Sunday, September 4, 2022 @ 19:00:07
Author: polyzen
Revision: 1292878
archrelease: copy trunk to community-any
Added:
python-imagesize/repos/community-any/PKGBUILD
(from rev 1292877, python-imagesize/trunk/PKGBUILD)
Deleted:
python-imagesize/repos/community-any/PKGBUILD
----------+
PKGBUILD | 74 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 40 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-04 18:59:48 UTC (rev 1292877)
+++ PKGBUILD 2022-09-04 19:00:07 UTC (rev 1292878)
@@ -1,34 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-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'
-url='https://github.com/shibukawa/imagesize_py'
-arch=('any')
-license=('MIT')
-
-depends=('python')
-makedepends=('python-setuptools')
-
-source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
-
-sha256sums=('69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a')
-
-build() {
- cd imagesize-$pkgver
- python setup.py build
-}
-
-check() {
- cd imagesize-$pkgver
- python -m unittest discover -v
-}
-
-package() {
- cd imagesize-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.rst
-}
Copied: python-imagesize/repos/community-any/PKGBUILD (from rev 1292877, python-imagesize/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-04 19:00:07 UTC (rev 1292878)
@@ -0,0 +1,40 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=python-imagesize
+pkgver=1.4.1
+pkgrel=2
+
+pkgdesc='Analyzes JPEG/JPEG 2000/PNG/GIF/TIFF/SVG/Netpbm/WebP image headers and returns image size or DPI'
+url='https://github.com/shibukawa/imagesize_py'
+arch=('any')
+license=('MIT')
+
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+
+source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
+
+sha256sums=('69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a')
+
+build() {
+ cd imagesize-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd imagesize-$pkgver
+ python -m unittest discover -v
+}
+
+package() {
+ cd imagesize-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/imagesize-$pkgver.dist-info/LICENSE.rst \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}
More information about the arch-commits
mailing list