Date: Tuesday, February 14, 2017 @ 15:44:56 Author: tredaelli Revision: 212439
archrelease: copy trunk to community-i686, community-x86_64 Added: python-hidapi/repos/community-i686/PKGBUILD (from rev 212438, python-hidapi/trunk/PKGBUILD) python-hidapi/repos/community-x86_64/PKGBUILD (from rev 212438, python-hidapi/trunk/PKGBUILD) Deleted: python-hidapi/repos/community-i686/PKGBUILD python-hidapi/repos/community-x86_64/PKGBUILD ---------------------------+ /PKGBUILD | 100 ++++++++++++++++++++++++++++++++++++++++++++ community-i686/PKGBUILD | 31 ------------- community-x86_64/PKGBUILD | 31 ------------- 3 files changed, 100 insertions(+), 62 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2017-02-14 15:44:34 UTC (rev 212438) +++ community-i686/PKGBUILD 2017-02-14 15:44:56 UTC (rev 212439) @@ -1,31 +0,0 @@ -# $Id$ -# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> -# Contributor: Andy Weidenbaum <archb...@gmail.com> - -pkgname=python2-hidapi -pkgver=0.7.99.19 -_pkgver=${pkgver%.*}.post${pkgver##*.} -pkgrel=1 -pkgdesc="A Cython interface to the hidapi from signal11/hidapi" -arch=('i686' 'x86_64') -depends=('libusb' 'python2') -makedepends=('cython2' 'python2-setuptools') -url="https://github.com/trezor/cython-hidapi" -license=('custom') -source=(https://pypi.org/packages/source/h/${pkgname#python2-}/${pkgname#python2-}-$_pkgver.tar.gz) -sha256sums=('890dea8bd8c4d35e1f1b29a9a3431aa1ee79ee1baf86cacb5913983a5bec5689') - -build() { - cd "${pkgname#python2-}-$_pkgver" - - python2 setup.py build -} - -package() { - cd "${pkgname#python2-}-$_pkgver" - - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" - echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-hidapi/repos/community-i686/PKGBUILD (from rev 212438, python-hidapi/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2017-02-14 15:44:56 UTC (rev 212439) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Andy Weidenbaum <archb...@gmail.com> +# Contributor: Kevin Azzam <a...@kevin.azz.am> + +pkgbase=python-hidapi +pkgname=('python-hidapi' 'python2-hidapi') +_pipname=hidapi +pkgver=0.7.99.20 +_pkgver=${pkgver%.*}.post${pkgver##*.} +pkgrel=1 +pkgdesc="A Cython interface to the hidapi from signal11/hidapi" +arch=('i686' 'x86_64') +makedepends=('cython2' 'python2-setuptools' 'cython' 'python-setuptools' 'libusb') +url="https://github.com/trezor/cython-hidapi" +license=('custom') +source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz) +sha256sums=('5f88fd3e79deeeaacd2f266e641434a342d25b779778393191c863dd4f2dffcc') + + +prepare() { + cp -R $_pipname-$_pkgver python2-$_pipname-$_pkgver +} + +build() { + cd "$_pipname-$_pkgver" + python setup.py build + + cd "../python2-$_pipname-$_pkgver" + python2 setup.py build +} + + +package_python-hidapi() { + depends=('libusb' 'python') + cd $_pipname-$_pkgver + python setup.py install --root="$pkgdir/" --optimize=1 + + install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" + echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-hidapi() { + depends=('libusb' 'python2') + cd "python2-$_pipname-$_pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" + echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2017-02-14 15:44:34 UTC (rev 212438) +++ community-x86_64/PKGBUILD 2017-02-14 15:44:56 UTC (rev 212439) @@ -1,31 +0,0 @@ -# $Id$ -# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> -# Contributor: Andy Weidenbaum <archb...@gmail.com> - -pkgname=python2-hidapi -pkgver=0.7.99.19 -_pkgver=${pkgver%.*}.post${pkgver##*.} -pkgrel=1 -pkgdesc="A Cython interface to the hidapi from signal11/hidapi" -arch=('i686' 'x86_64') -depends=('libusb' 'python2') -makedepends=('cython2' 'python2-setuptools') -url="https://github.com/trezor/cython-hidapi" -license=('custom') -source=(https://pypi.org/packages/source/h/${pkgname#python2-}/${pkgname#python2-}-$_pkgver.tar.gz) -sha256sums=('890dea8bd8c4d35e1f1b29a9a3431aa1ee79ee1baf86cacb5913983a5bec5689') - -build() { - cd "${pkgname#python2-}-$_pkgver" - - python2 setup.py build -} - -package() { - cd "${pkgname#python2-}-$_pkgver" - - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" - echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-hidapi/repos/community-x86_64/PKGBUILD (from rev 212438, python-hidapi/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2017-02-14 15:44:56 UTC (rev 212439) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Andy Weidenbaum <archb...@gmail.com> +# Contributor: Kevin Azzam <a...@kevin.azz.am> + +pkgbase=python-hidapi +pkgname=('python-hidapi' 'python2-hidapi') +_pipname=hidapi +pkgver=0.7.99.20 +_pkgver=${pkgver%.*}.post${pkgver##*.} +pkgrel=1 +pkgdesc="A Cython interface to the hidapi from signal11/hidapi" +arch=('i686' 'x86_64') +makedepends=('cython2' 'python2-setuptools' 'cython' 'python-setuptools' 'libusb') +url="https://github.com/trezor/cython-hidapi" +license=('custom') +source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz) +sha256sums=('5f88fd3e79deeeaacd2f266e641434a342d25b779778393191c863dd4f2dffcc') + + +prepare() { + cp -R $_pipname-$_pkgver python2-$_pipname-$_pkgver +} + +build() { + cd "$_pipname-$_pkgver" + python setup.py build + + cd "../python2-$_pipname-$_pkgver" + python2 setup.py build +} + + +package_python-hidapi() { + depends=('libusb' 'python') + cd $_pipname-$_pkgver + python setup.py install --root="$pkgdir/" --optimize=1 + + install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" + echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-hidapi() { + depends=('libusb' 'python2') + cd "python2-$_pipname-$_pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -dm 755 "$pkgdir/usr/share/licenses/$pkgname" + echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}