diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 8 insertions, 26 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pyelliptic pkgdesc = Python OpenSSL wrapper for ECC (ECDSA, ECIES), AES, HMAC, Blowfish, ... pkgver = 2.0.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/radfish/pyelliptic arch = any license = GPL3 @@ -10,9 +10,5 @@ pkgbase = python-pyelliptic source = https://github.com/radfish/pyelliptic/archive/2.0.1.tar.gz sha256sums = 840ad6f5e79c633e1de79fb08be78bf76fe07a7f260905eea31efb5ddf00180d -pkgname = python2-pyelliptic - provides = python2-pyelliptic=2.0.1 - pkgname = python-pyelliptic - provides = python-pyelliptic=2.0.1 @@ -1,10 +1,8 @@ # Maintainer: robertfoster -pkgbase=python-pyelliptic -pkgname=('python2-pyelliptic' 'python-pyelliptic') -_pkgname=pyelliptic +pkgname=python-pyelliptic pkgver=2.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Python OpenSSL wrapper for ECC (ECDSA, ECIES), AES, HMAC, Blowfish, ..." arch=(any) url="https://github.com/radfish/pyelliptic" @@ -14,25 +12,13 @@ makedepends=('python-setuptools') source=(https://github.com/radfish/pyelliptic/archive/$pkgver.tar.gz) build() { - cp -a ${_pkgname}-${pkgver}{,-py2} - - cd ${_pkgname}-${pkgver} - python setup.py build - - cd ../${_pkgname}-${pkgver}-py2 - python2 setup.py build -} - -package_python-pyelliptic(){ - provides=("$pkgname=$pkgver") - cd ${_pkgname}-${pkgver} - python setup.py install --root="$pkgdir" --skip-build + cd ${pkgname##python-}-${pkgver} + python setup.py build } -package_python2-pyelliptic(){ - provides=("$pkgname=$pkgver") - cd ${_pkgname}-${pkgver}-py2 - python2 setup.py install --root="$pkgdir" --skip-build +package() { + cd ${pkgname##python-}-${pkgver} + python setup.py install --root="$pkgdir" --skip-build } sha256sums=('840ad6f5e79c633e1de79fb08be78bf76fe07a7f260905eea31efb5ddf00180d') |