[arch-commits] Commit in python-construct/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:20:43 UTC 2019
Date: Friday, October 25, 2019 @ 15:20:43
Author: foutrelis
Revision: 518987
archrelease: copy trunk to community-staging-any
Added:
python-construct/repos/community-staging-any/
python-construct/repos/community-staging-any/PKGBUILD
(from rev 518986, python-construct/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-construct/repos/community-staging-any/PKGBUILD (from rev 518986, python-construct/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:20:43 UTC (rev 518987)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-construct
+pkgver=2.9.45
+pkgrel=4
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="https://construct.readthedocs.org"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-arrow' 'python-numpy' 'python-pytest-runner' 'python-pytest-benchmark')
+optdepends=('python-arrow: for Timestamp'
+ 'python-numpy: for array serialization with Numpy protocol')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz")
+sha512sums=('78d64f3e567e6c9cef842d3e15f416d48856d229a8c6f21e282d3123a86fdd243b20dba5040c6e1d28b67422881351b303262132263efdf94bb73adde0d5dfc1')
+
+build() {
+ cd construct-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd construct-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd construct-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list