[arch-commits] Commit in python-crc16/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:50:16 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:50:15
  Author: felixonmars
Revision: 752837

archrelease: copy trunk to community-staging-x86_64

Added:
  python-crc16/repos/community-staging-x86_64/
  python-crc16/repos/community-staging-x86_64/PKGBUILD
    (from rev 752836, python-crc16/trunk/PKGBUILD)

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

Copied: python-crc16/repos/community-staging-x86_64/PKGBUILD (from rev 752836, python-crc16/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:50:15 UTC (rev 752837)
@@ -0,0 +1,28 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-crc16
+pkgver=0.1.1
+pkgrel=4
+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.9"  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