Date: Friday, August 22, 2014 @ 16:30:13 Author: fyan Revision: 220537
archrelease: copy trunk to extra-any Added: python-characteristic/repos/extra-any/PKGBUILD (from rev 220536, python-characteristic/trunk/PKGBUILD) Deleted: python-characteristic/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-08-22 14:29:55 UTC (rev 220536) +++ PKGBUILD 2014-08-22 14:30:13 UTC (rev 220537) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@gmail.com> - -pkgbase=python-characteristic -pkgname=('python-characteristic' 'python2-characteristic') -pkgver=14.0.0 -pkgrel=1 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/characteristic" -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-pytest' 'python2-pytest') -source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-${pkgver}.tar.gz") -md5sums=('baea1f28f71c47d88d7d24335f814ee8') - -prepare() { - cp -a characteristic-${pkgver}{,-python2} -} - -build() { - # Build python 3 module - cd characteristic-${pkgver} - python3 setup.py build - - # Build python 2 module - cd ../characteristic-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Check python3 module - cd "${srcdir}"/characteristic-${pkgver} - python -Walways setup.py test - - # Check python2 module - cd "${srcdir}"/characteristic-${pkgver}-python2 - python2 -Walways setup.py test -} - -package_python-characteristic() { - depends=('python') - - cd characteristic-${pkgver} - python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-characteristic() { - depends=('python2') - - cd characteristic-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-characteristic/repos/extra-any/PKGBUILD (from rev 220536, python-characteristic/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-08-22 14:30:13 UTC (rev 220537) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> + +pkgbase=python-characteristic +pkgname=('python-characteristic' 'python2-characteristic') +pkgver=14.1.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/characteristic" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest' 'python2-pytest') +source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-${pkgver}.tar.gz") +md5sums=('68ea7e28997fc57d3631791ec0567a05') + +prepare() { + cp -a characteristic-${pkgver}{,-python2} +} + +build() { + # Build python 3 module + cd characteristic-${pkgver} + python3 setup.py build + + # Build python 2 module + cd ../characteristic-${pkgver}-python2 + python2 setup.py build +} + +check() { + # Check python3 module + cd "${srcdir}"/characteristic-${pkgver} + python -Walways setup.py test + + # Check python2 module + cd "${srcdir}"/characteristic-${pkgver}-python2 + python2 -Walways setup.py test +} + +package_python-characteristic() { + depends=('python') + + cd characteristic-${pkgver} + python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-characteristic() { + depends=('python2') + + cd characteristic-${pkgver}-python2 + python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}