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

pkgname=magic-wormhole-git
_pkgname=${pkgname%-*}
pkgver=0.9.2
pkgrel=3
pkgdesc="Securely transfer data between computers"
arch=('any')
url="https://github.com/warner/${_pkgname}"
license=('MIT')
depends=('python' 'python-click' 'python-cffi' 'python-autobahn' 'python-tqdm' 'python-hkdf' 'python-pynacl' 'python-spake2' 'python-humanize' 'python-idna' 'python-service-identity' 'python-ipaddress' 'txtorcon')
makedepends=('python-setuptools')
source=("git+${url}.git")
conflicts=("wormhole" "wormhole-server")
provides=("wormhole" "wormhole-server")
md5sums=('SKIP')

pkgver()
{
  cd "${srcdir}/${_pkgname}"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

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

package() {
  cd "${srcdir}/${_pkgname}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}