Date: Friday, May 6, 2016 @ 02:42:26 Author: anthraxx Revision: 173888
addpkg: python2-subprocess32 3.2.7-1 Added: python2-subprocess32/ python2-subprocess32/repos/ python2-subprocess32/trunk/ python2-subprocess32/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python2-subprocess32/trunk/PKGBUILD =================================================================== --- python2-subprocess32/trunk/PKGBUILD (rev 0) +++ python2-subprocess32/trunk/PKGBUILD 2016-05-06 00:42:26 UTC (rev 173888) @@ -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: