[arch-commits] Commit in (4 files)

Jelle van der Waa jelle at archlinux.org
Wed Aug 21 18:16:39 UTC 2019


    Date: Wednesday, August 21, 2019 @ 18:16:38
  Author: jelle
Revision: 500434

Initial commit

Module required to build the awesome epic card10 CCC badge \o/

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

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

Added: python-crc16/trunk/PKGBUILD
===================================================================
--- python-crc16/trunk/PKGBUILD	                        (rev 0)
+++ python-crc16/trunk/PKGBUILD	2019-08-21 18:16:38 UTC (rev 500434)
@@ -0,0 +1,28 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-crc16
+pkgver=0.1.1
+pkgrel=1
+arch=(x86_64)
+pkgdesc='Python library for calculating CRC16'
+url="https://pypi.org/project/crc16/"
+depends=(python-setuptools python)
+license=('LGPL')
+options=(!emptydirs)
+source=(https://pypi.python.org/packages/source/c/${pkgname#python-}/${pkgname#python-}-$pkgver.tar.gz)
+sha512sums=('45d5e8e13b1ac5f885b40516872a9233514f09aa8990915904b214eec2ef6084016f8f0c15bb411aaa1ffc32e8207020916f723e48eee726a7e6989901c9e65d')
+
+build() {
+  cd "${pkgname#python-}-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname#python-}-$pkgver"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7"  python -m crc16.test
+}
+
+package() {
+  cd "${pkgname#python-}-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list