# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-crc16 _pkgname=crc16 pkgver=0.1.1 pkgrel=8 pkgdesc='Library for calculating CRC16.' arch=('any') url='https://pypi.org/project/crc16/#files' license=('LGPL') depends=('python') makedepends=('python-build' 'python-pip' 'python-wheel') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('45d5e8e13b1ac5f885b40516872a9233514f09aa8990915904b214eec2ef6084016f8f0c15bb411aaa1ffc32e8207020916f723e48eee726a7e6989901c9e65d') build() { cd "$_pkgname-$pkgver" python -m build --wheel --outdir="$startdir/dist" } package() { cd "$_pkgname-$pkgver" pip install \ --verbose \ --disable-pip-version-check \ --no-warn-script-location \ --ignore-installed \ --no-compile \ --no-deps \ --root="$pkgdir" \ --prefix=/usr \ --no-index \ --find-links="file://$startdir/dist" \ $_pkgname }