upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-crc8 / trunk / PKGBUILD
blobd68309ee3efc2ab3117fac9d0b9924c418439157
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-crc8
4 pkgver=0.1.0
5 pkgrel=4
6 pkgdesc="A module with the CRC8 algorithm for Python"
7 url="https://github.com/niccokunzmann/crc8"
8 license=('MIT')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/niccokunzmann/crc8/archive/v$pkgver.tar.gz")
13 sha512sums=('668ba114066d8a3b2fe292d43fab66d98dc8e54c312863bcc3c85030a40cde0c9ca0d4fcffbc81225dc35629491e58e69aaae698e0abb4bb7431f6b4d285246c')
15 build() {
16   cd crc8-$pkgver
17   python setup.py build
20 check() {
21   cd crc8-$pkgver
22   python test_crc8.py
25 package() {
26   cd crc8-$pkgver
27   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/