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

pkgname=magic-wormhole-git
_pkgname=${pkgname%-*}
pkgver=0.11.2.r82.995d3f5
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-txtorcon' 'python-pyhamcrest')
makedepends=('python-setuptools')
source=("git+${url}.git" "magic-wormhole-git.patch")
conflicts=("wormhole" "wormhole-server")
provides=("wormhole" "wormhole-server")
sha512sums=('SKIP'
            'b93a25d041c6cded94eed8951d448bf84373516e49498289275e080cba487ea6905128b83c1f7ccb635f1f8045bcdefa0bce6ef9d493060c85b177d65011bbf2')

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

prepare() {
	patch < "magic-wormhole-git.patch" "$srcdir/$_pkgname/setup.py"
}

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

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