[arch-commits] Commit in python-construct/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 1 11:03:31 UTC 2019


    Date: Friday, March 1, 2019 @ 11:03:30
  Author: felixonmars
Revision: 437238

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   90 +++++++++++++++++++++----------------------------------------
 1 file changed, 32 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 11:03:14 UTC (rev 437237)
+++ PKGBUILD	2019-03-01 11:03:30 UTC (rev 437238)
@@ -1,58 +0,0 @@
-# $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
-}

Copied: python-construct/repos/community-any/PKGBUILD (from rev 437237, python-construct/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-01 11:03:30 UTC (rev 437238)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-construct
+pkgver=2.9.45
+pkgrel=3
+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