diff options
author | nfnty | 2015-06-12 13:46:11 +0200 |
---|---|---|
committer | nfnty | 2015-06-12 13:46:38 +0200 |
commit | 7ab6fdb1b074439bf31eb640a888442aac4535e5 (patch) | |
tree | 964f0d29138b362d91b56ea2ac174e0488b499ae | |
download | aur-7ab6fdb1b074439bf31eb640a888442aac4535e5.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..25eeae7e1a19 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-imagehash-git + pkgdesc = A Python Perceptual Image Hashing Module + pkgver = r1 + pkgrel = 1 + url = https://github.com/JohannesBuchner/imagehash + arch = any + license = custom:BSD + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-numpy + depends = python-scipy + depends = python-pillow + provides = imagehash + conflicts = imagehash + source = imagehash::git+https://github.com/JohannesBuchner/imagehash.git + sha512sums = SKIP + +pkgname = python-imagehash-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d9500cae3e76 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=('python-imagehash-git') +srcname='imagehash' +pkgdesc='A Python Perceptual Image Hashing Module' +pkgver='r1' +pkgrel='1' +arch=('any') +url='https://github.com/JohannesBuchner/imagehash' +license=('custom:BSD') + +depends=('python' 'python-numpy' 'python-scipy' 'python-pillow') +makedepends=('git' 'python-setuptools') +provides=('imagehash') +conflicts=('imagehash') + +source=("${srcname}::git+https://github.com/JohannesBuchner/imagehash.git") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/${srcname}" + + printf 'r%s.%s\n' \ + "$( git rev-list HEAD | wc --lines )" \ + "$( git describe --always | sed 's/-/./g' )" +} + +package() { + cd "${srcdir}/${srcname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} |