[arch-commits] Commit in python-construct/repos/community-testing-any (2 files)

Felix Yan felixonmars at archlinux.org
Thu Feb 15 12:28:01 UTC 2018


    Date: Thursday, February 15, 2018 @ 12:28:00
  Author: felixonmars
Revision: 294607

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/PKGBUILD
    (from rev 294606, python-construct/trunk/PKGBUILD)
Deleted:
  python-construct/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |  105 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 53 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-15 12:27:43 UTC (rev 294606)
+++ PKGBUILD	2018-02-15 12:28:00 UTC (rev 294607)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-construct
-pkgname=('python-construct' 'python2-construct')
-pkgver=2.9.30
-pkgrel=1
-pkgdesc="A powerful declarative parser/builder for binary data"
-arch=('any')
-license=('MIT')
-url="http://construct.readthedocs.org"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 'python2-numpy'
-              'python-pytest-benchmark' 'python2-pytest-benchmark')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz")
-sha512sums=('7b343647247a421a144a1a5438e3ccc08adc614a25532d537b7ec0af020371e13c0212804a61e6375ac7529efdccaf948e70f823d43605e880ffb132b74fef88')
-
-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 || warning "TODO: figure out benchmark related failures"
-}
-
-package_python-construct() {
-  depends=('python')
-
-  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')
-
-  cd construct-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 294606, python-construct/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-02-15 12:28:00 UTC (rev 294607)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.9.30
+pkgrel=2
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 'python2-numpy'
+              'python-pytest-benchmark' 'python2-pytest-benchmark' 'python2-enum34')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz")
+sha512sums=('7b343647247a421a144a1a5438e3ccc08adc614a25532d537b7ec0af020371e13c0212804a61e6375ac7529efdccaf948e70f823d43605e880ffb132b74fef88')
+
+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 || warning "TODO: figure out benchmark related failures"
+}
+
+package_python-construct() {
+  depends=('python')
+
+  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-enum34: for Enum / EnumFlags')
+
+  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