[arch-commits] Commit in python-crc8/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 15 07:00:41 UTC 2020


    Date: Friday, May 15, 2020 @ 07:00:40
  Author: felixonmars
Revision: 628015

archrelease: copy trunk to community-any

Added:
  python-crc8/repos/community-any/
  python-crc8/repos/community-any/PKGBUILD
    (from rev 628014, python-crc8/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-crc8/repos/community-any/PKGBUILD (from rev 628014, python-crc8/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-05-15 07:00:40 UTC (rev 628015)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-crc8
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="A module with the CRC8 algorithm for Python"
+url="https://github.com/niccokunzmann/crc8"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/niccokunzmann/crc8/archive/v$pkgver.tar.gz")
+sha512sums=('668ba114066d8a3b2fe292d43fab66d98dc8e54c312863bcc3c85030a40cde0c9ca0d4fcffbc81225dc35629491e58e69aaae698e0abb4bb7431f6b4d285246c')
+
+build() {
+  cd crc8-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd crc8-$pkgver
+  python test_crc8.py
+}
+
+package() {
+  cd crc8-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list