summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fa4a569ed448f9da9d763127f85521eaab3a633 (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
42
# Maintainer: Storm Dragon <stormdragon2976@gmail.com> 

pkgbase=magic-wormhole
_pkgname='magic-wormhole'
pkgname=('python2-magic-wormhole' 'python-magic-wormhole')
pkgver=0.11.1
pkgrel=1
pkgdesc="Securely transfer data between computers"
arch=('any')
url="https://pypi.python.org/pypi/${_pkgname}/${pkgver}"
license=('MIT')
depends=('python-click' 'python2-click' 'python-cffi' 'python2-cffi' 'python-autobahn' 'python2-autobahn' 'python-tqdm' 'python2-tqdm' 'python-hkdf' 'python2-hkdf' 'python-pynacl' 'python2-pynacl' 'python-spake2' 'python2-spake2' 'python-humanize' 'python-idna' 'python2-idna' 'python-service-identity' 'python2-service-identity' 'python-ipaddress' 'python2-ipaddress' 'python-txtorcon' 'python2-txtorcon')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
conflicts=("wormhole" "wormhole-server")
provides=("wormhole" "wormhole-server")
replaces=("wormhole" "wormhole-server")
md5sums=('7de592965ead410d5fbd2a4c18d0a25d')

prepare() {
  cp -a ${_pkgname}-${pkgver}{,-py2}
} 

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
  python2 setup.py build
}

package_python2-magic-wormhole() {
  pkgdesc="Securely transfer data between computers"
  depends=('python2-click' 'python2-cffi' 'python2-autobahn' 'python2-tqdm' 'python2-hkdf' 'python2-pynacl' 'python2-spake2' 'python2-idna' 'python2-service-identity' 'python2-ipaddress' 'python2-txtorcon')
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
}

package_python-magic-wormhole() {
  pkgdesc="Securely transfer data between computers"
  depends=('python-click' 'python-cffi' 'python-autobahn' 'python-tqdm' 'python-hkdf' 'python-pynacl' 'python-spake2' 'python-humanize' 'python-idna' 'python-service-identity' 'python-ipaddress' 'python-txtorcon')
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}