[arch-commits] Commit in python-construct/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Apr 13 03:10:24 UTC 2017
Date: Thursday, April 13, 2017 @ 03:10:23
Author: felixonmars
Revision: 222548
archrelease: copy trunk to community-any
Added:
python-construct/repos/community-any/PKGBUILD
(from rev 222547, python-construct/trunk/PKGBUILD)
Deleted:
python-construct/repos/community-any/PKGBUILD
----------+
PKGBUILD | 103 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 51 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-13 03:09:36 UTC (rev 222547)
+++ PKGBUILD 2017-04-13 03:10:23 UTC (rev 222548)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-construct
-pkgname=('python-construct' 'python2-construct')
-pkgver=2.8.10
-_commit=3622db936af6df67ff6421bbbeb3ef492d9808d0
-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' 'git')
-checkdepends=('python-pytest' 'python2-pytest' 'python-numpy' 'python2-numpy')
-source=("git+https://github.com/construct/construct.git#commit=$_commit")
-sha512sums=('SKIP')
-
-prepare() {
- cp -a construct{,-py2}
-}
-
-build() {
- cd "$srcdir"/construct
- python setup.py build
-
- cd "$srcdir"/construct-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/construct
- PYTHONPATH="$PWD" py.test
-
- cd "$srcdir"/construct-py2
- PYTHONPATH="$PWD" py.test2
-}
-
-package_python-construct() {
- depends=('python')
-
- cd construct
- 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-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 222547, python-construct/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-04-13 03:10:23 UTC (rev 222548)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.8.11
+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' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 'python2-numpy')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz")
+sha512sums=('0c073c7b88e548543718812c731196e59bda6bc8bbb5c5a554b447de96d5e0d528f2745e186963e34a09209e9e7cfa222f239fdace805e331a5b2a70b866ba04')
+
+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')
+
+ 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
+}
More information about the arch-commits
mailing list