[arch-commits] Commit in python-construct/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Tue Jul 3 00:49:51 UTC 2018
Date: Tuesday, July 3, 2018 @ 00:49:51
Author: eschwartz
Revision: 350297
archrelease: copy trunk to community-staging-any
Added:
python-construct/repos/community-staging-any/
python-construct/repos/community-staging-any/PKGBUILD
(from rev 350296, python-construct/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-construct/repos/community-staging-any/PKGBUILD (from rev 350296, python-construct/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-03 00:49:51 UTC (rev 350297)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.9.45
+pkgrel=2
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="https://construct.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-arrow' 'python2-arrow' 'python-numpy' 'python2-numpy' 'python-pytest-runner'
+ 'python2-pytest-runner' 'python-pytest-benchmark' 'python2-pytest-benchmark'
+ 'python2-enum34' )
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz")
+sha512sums=('78d64f3e567e6c9cef842d3e15f416d48856d229a8c6f21e282d3123a86fdd243b20dba5040c6e1d28b67422881351b303262132263efdf94bb73adde0d5dfc1')
+
+prepare() {
+ cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/construct-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/construct-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/construct-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/construct-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-construct() {
+ depends=('python')
+ optdepends=('python-arrow: for Timestamp'
+ 'python-numpy: for array serialization with Numpy protocol')
+
+ cd construct-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+ depends=('python2')
+ optdepends=('python2-arrow: for Timestamp'
+ 'python2-enum34: for Enum / EnumFlags'
+ 'python2-numpy: for array serialization with Numpy protocol')
+
+ cd construct-$pkgver-py2
+ python2 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