[arch-commits] Commit in python-crc16/repos (2 files)
Jelle van der Waa
jelle at archlinux.org
Wed Aug 21 18:18:14 UTC 2019
Date: Wednesday, August 21, 2019 @ 18:18:14
Author: jelle
Revision: 500435
archrelease: copy trunk to community-x86_64
Added:
python-crc16/repos/community-x86_64/
python-crc16/repos/community-x86_64/PKGBUILD
(from rev 500434, python-crc16/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: python-crc16/repos/community-x86_64/PKGBUILD (from rev 500434, python-crc16/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-08-21 18:18:14 UTC (rev 500435)
@@ -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