# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-simhash _pkgname=simhash pkgver=2.1.2 pkgrel=6 epoch=1 pkgdesc='A Python implementation of Simhash Algorithm.' url='https://pypi.org/project/simhash/#files' arch=('any') license=('MIT') depends=('python' 'python-numpy') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('af6c49f7fc5f60aa02ef7b85379a6f33e7e526b5161e2fbcfdafb3f63459797cd7a0c742bc5356d0f3cbafbf725900ef44ce8c802c2251c4b7f1cd230b316b41') build() { cd "$_pkgname-$pkgver" python setup.py build } package() { cd "$_pkgname-$pkgver" python setup.py install --root="$pkgdir" --prefix=/usr -O1 }