[arch-commits] Commit in python2-subprocess32/repos (4 files)

Levente Polyak anthraxx at archlinux.org
Fri May 6 00:42:42 UTC 2016


    Date: Friday, May 6, 2016 @ 02:42:42
  Author: anthraxx
Revision: 173889

archrelease: copy trunk to community-i686, community-x86_64

Added:
  python2-subprocess32/repos/community-i686/
  python2-subprocess32/repos/community-i686/PKGBUILD
    (from rev 173888, python2-subprocess32/trunk/PKGBUILD)
  python2-subprocess32/repos/community-x86_64/
  python2-subprocess32/repos/community-x86_64/PKGBUILD
    (from rev 173888, python2-subprocess32/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   34 ++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

Copied: python2-subprocess32/repos/community-i686/PKGBUILD (from rev 173888, python2-subprocess32/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-05-06 00:42:42 UTC (rev 173889)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python2-subprocess32
+_gitname=${pkgname/python2/python}
+pkgver=3.2.7
+pkgrel=1
+pkgdesc='Backport of the Python 3 subprocess module'
+url='https://github.com/google/python-subprocess32'
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('python2')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/python-subprocess32/archive/${pkgver}.tar.gz)
+sha512sums=('d2f18de121623d4036b10c28043fc9e8d709f63a333be2b32add76711daf89321df0260751726f8e1625d18840a1be209f45a470b73adf6127105bdc02ba133c')
+
+build() {
+  cd ${_gitname}-${pkgver}
+  python2 setup.py build
+}
+
+check() {
+  cd ${_gitname}-${pkgver}
+  local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+    python2 test_subprocess32.py
+}
+
+package() {
+  cd ${_gitname}-${pkgver}
+  python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.md ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: python2-subprocess32/repos/community-x86_64/PKGBUILD (from rev 173888, python2-subprocess32/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-05-06 00:42:42 UTC (rev 173889)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python2-subprocess32
+_gitname=${pkgname/python2/python}
+pkgver=3.2.7
+pkgrel=1
+pkgdesc='Backport of the Python 3 subprocess module'
+url='https://github.com/google/python-subprocess32'
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('python2')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/python-subprocess32/archive/${pkgver}.tar.gz)
+sha512sums=('d2f18de121623d4036b10c28043fc9e8d709f63a333be2b32add76711daf89321df0260751726f8e1625d18840a1be209f45a470b73adf6127105bdc02ba133c')
+
+build() {
+  cd ${_gitname}-${pkgver}
+  python2 setup.py build
+}
+
+check() {
+  cd ${_gitname}-${pkgver}
+  local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+    python2 test_subprocess32.py
+}
+
+package() {
+  cd ${_gitname}-${pkgver}
+  python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.md ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list