Date: Tuesday, March 14, 2017 @ 10:18:23 Author: tredaelli Revision: 216211
archrelease: copy trunk to community-any Added: python-pyaes/repos/community-any/ python-pyaes/repos/community-any/PKGBUILD (from rev 216210, python-pyaes/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: python-pyaes/repos/community-any/PKGBUILD (from rev 216210, python-pyaes/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2017-03-14 10:18:23 UTC (rev 216211) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Andy Weidenbaum <archb...@gmail.com> + +pkgbase=python-pyaes +pkgname=('python-pyaes' 'python2-pyaes') +_pipname=pyaes +pkgver=1.6.0 +pkgrel=1 +pkgdesc="Pure-Python Implementation of the AES block-cipher and common modes of operation" +arch=('any') +makedepends=('python2-setuptools' 'python-setuptools') +url="https://github.com/ricmoo/pyaes" +license=('MIT') +source=(https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz) +sha256sums=('9cd5a54d914b1eebfb14fcb490315214b6a0304d9f1bb47e90d1d8e0b15ce92e') + + +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-pyaes() { + depends=('python') + cd $_pipname-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 + + install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt +} + +package_python2-pyaes() { + depends=('python2') + cd "python2-$_pipname-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt +}