Skip to content

Instantly share code, notes, and snippets.

@michaellass
Last active February 15, 2023 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellass/f1c6cecb7b6fa833610a18c4477540bb to your computer and use it in GitHub Desktop.
Save michaellass/f1c6cecb7b6fa833610a18c4477540bb to your computer and use it in GitHub Desktop.
Updated PKGBUILD for pycrc
# Maintainer: Alesh Slovak <aleshslovak@gmail.com>
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
# Contributor: Niels Martignène <niels.martignene@gmail.com>
# Contributor: Michael Lass <bevan@bi-co.net>
pkgname=pycrc
pkgver=0.10.0
pkgrel=1
pkgdesc="Free, easy to use Cyclic Redundancy Check (CRC) calculator and C source code generator"
arch=(any)
url="https://pycrc.org"
license=('MIT')
depends=(python)
makedepends=(python-build python-installer python-wheel)
source=("https://pycrc.org/download/pycrc-${pkgver}.tar.gz")
sha256sums=('bf3b414dde3f5c1c2b331ba300a5550da5ba280b1611bc7c0ccf9780499fc041')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment