summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e5cf128b708056836c218e4e1f04f11617b9bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: robertfoster
# Contributor: redfish

pkgbase=python-pyelliptic
pkgname=(
#'python2-pyelliptic' 
'python-pyelliptic')
_pkgname=pyelliptic
pkgver=1.5.8
pkgrel=1
pkgdesc="Python OpenSSL wrapper. For modern cryptography with ECC, AES, HMAC, Blowfish..."
arch=(any)
url="https://github.com/yann2192/pyelliptic"
license=('GPL3')
depends=('openssl')
makedepends=('python-setuptools')
source=(https://github.com/yann2192/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
}

package_python2-pyelliptic(){
  provides=("$pkgname=$pkgver")
  cd ${_pkgname}-${pkgver}-py2
  python2 setup.py install --root="$pkgdir" --skip-build
}

sha256sums=('ec23fb3a39a9ad9402354c2ac6c66990e737435365eb313070dd9a76e6849153')