diff options
author | Christoph Fink | 2022-10-23 14:42:43 +0300 |
---|---|---|
committer | Christoph Fink | 2022-10-23 14:42:43 +0300 |
commit | 3df928d128f6767d2e75290bf02f045f5eae63ec (patch) | |
tree | 0cbb1e8e2e602e70532d02f288f4cfbd6ca93ecd | |
parent | f731bdd690ae9cfc8811124152dbff52ff46c7c4 (diff) | |
download | aur-3df928d128f6767d2e75290bf02f045f5eae63ec.tar.gz |
upgpkg: python-dhash 1.4-1
upstream release
python-dhash 1.4
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 35 insertions, 21 deletions
@@ -1,13 +1,17 @@ pkgbase = python-dhash - pkgdesc = Python library to calculate the difference hash (perceptual hash) for a given image, useful for detecting duplicates - pkgver = 1.3 - pkgrel = 6 + pkgdesc = Calculate the difference hash (perceptual hash) for an image + pkgver = 1.4 + pkgrel = 1 url = https://github.com/Jetsetter/dhash arch = any license = MIT + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel + depends = python depends = python-pillow - source = https://files.pythonhosted.org/packages/source/d/dhash/dhash-1.3.tar.gz - sha256sums = e6c8cd09d330f1ac44d3c9735d6b2a637d713dcb6b6091e340f91dda2484acb8 + source = https://files.pythonhosted.org/packages/source/d/dhash/dhash-1.4.tar.gz + b2sums = b2a86fb8d7acb46dc3b6d37ba3d0de78c0cd0fdb387d3b6a948ced747ea07e8152e91cb46d7c6e8e305be6d6c7b96bd668c218069ef9d1e84afa96bb2b851fa1 pkgname = python-dhash @@ -1,28 +1,38 @@ # Maintainer: peippo <christoph.fink@gmail.com> -pkgname=python-dhash -pkgver=1.3 -pkgrel=6 - -pkgdesc="Python library to calculate the difference hash (perceptual hash) for a given image, useful for detecting duplicates" +pkgname="python-dhash" +_name=${pkgname#python-} +pkgdesc="Calculate the difference hash (perceptual hash) for an image" url="https://github.com/Jetsetter/dhash" -license=('MIT') -arch=('any') -makedepends=('python-setuptools') -depends=('python-pillow') +pkgver=1.4 +pkgrel=1 + +arch=("any") +license=("MIT") + +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) +depends=( + "python" + "python-pillow" +) -_name=${pkgname#python-} source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=("e6c8cd09d330f1ac44d3c9735d6b2a637d713dcb6b6091e340f91dda2484acb8") +b2sums=('b2a86fb8d7acb46dc3b6d37ba3d0de78c0cd0fdb387d3b6a948ced747ea07e8152e91cb46d7c6e8e305be6d6c7b96bd668c218069ef9d1e84afa96bb2b851fa1') build() { - cd "$srcdir"/${_name}-$pkgver - python setup.py build + cd "${srcdir}"/${_name}-${pkgver} + python -m build --wheel --no-isolation } package() { - cd ${_name}-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst + cd "${srcdir}/${_name}-${pkgver}" + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |