[arch-commits] Commit in (4 files)

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


    Date: Friday, May 15, 2020 @ 07:00:32
  Author: felixonmars
Revision: 628014

addpkg: python-crc8 0.1.0-1

Added:
  python-crc8/
  python-crc8/repos/
  python-crc8/trunk/
  python-crc8/trunk/PKGBUILD

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

Added: python-crc8/trunk/PKGBUILD
===================================================================
--- python-crc8/trunk/PKGBUILD	                        (rev 0)
+++ python-crc8/trunk/PKGBUILD	2020-05-15 07:00:32 UTC (rev 628014)
@@ -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