diff options
author | Christoph Fink | 2020-01-21 18:53:33 +0200 |
---|---|---|
committer | Christoph Fink | 2020-01-21 18:53:33 +0200 |
commit | f853b43670f07eb10c21a6e0a23568faab6c0580 (patch) | |
tree | d6339c28464f97973fb2db5d01063401a6d4ee0f | |
parent | 0fdf9210a1f7ba44adfb13925a8bdd53b75a4374 (diff) | |
download | aur-f853b43670f07eb10c21a6e0a23568faab6c0580.tar.gz |
dropping python2 support
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 5 insertions, 30 deletions
@@ -1,20 +1,13 @@ 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 = 2 + pkgrel = 3 url = https://github.com/Jetsetter/dhash arch = any license = MIT makedepends = python-setuptools - makedepends = python2-setuptools source = https://files.pythonhosted.org/packages/source/d/dhash/dhash-1.3.tar.gz sha256sums = e6c8cd09d330f1ac44d3c9735d6b2a637d713dcb6b6091e340f91dda2484acb8 pkgname = python-dhash - depends = python - depends = python-pillow - -pkgname = python2-dhash - depends = python2 - depends = python2-pillow @@ -1,45 +1,27 @@ # Maintainer: peippo <christoph.fink@gmail.com> -pkgbase=python-dhash -pkgname=('python-dhash' 'python2-dhash') +pkgname=python-dhash pkgver=1.3 -pkgrel=2 +pkgrel=3 pkgdesc="Python library to calculate the difference hash (perceptual hash) for a given image, useful for detecting duplicates" url="https://github.com/Jetsetter/dhash" license=('MIT') arch=('any') -makedepends=('python-setuptools' 'python2-setuptools') +makedepends=('python-setuptools') _name=${pkgname#python-} source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=("e6c8cd09d330f1ac44d3c9735d6b2a637d713dcb6b6091e340f91dda2484acb8") -prepare() { - cp -a ${_name}-$pkgver{,-py2} -} - build() { cd "$srcdir"/${_name}-$pkgver python setup.py build - - cd "$srcdir"/${_name}-$pkgver-py2 - python2 setup.py build } -package_python-dhash() { - depends=('python' 'python-pillow') - +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 } - -package_python2-dhash() { - depends=('python2' 'python2-pillow') - - cd ${_name}-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst -} |