# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
# Included in Slint and modified by:
# Didier Spaier <didier~at~slint~dot~fr>
# The dependency tree is in magic-wormhole_deps


pkgname='magic-wormhole'
pkgver=0.12.0
pkgrel=1slint
export CWD=$(pwd)
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Securely transfer data between computers)"
)
arch=x86_64
url="https://pypi.python.org/pypi/${pkgname}/${pkgver}"
license=('MIT')
depends=('python-click' 'python-cffi' 'python-autobahn' 'python-tqdm' 'python-hkdf' 'python-pynacl' 'python-spake2' 'python-humanize' 'python-idna' 'python-service-identity' 'python-txtorcon')
makedepends=('python-setuptools')
#source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
conflicts=("wormhole" "wormhole-server" "python-wormhole")
provides=("wormhole" "wormhole-server" "python-wormhole")
replaces=("wormhole" "wormhole-server" "python-wormhole")
sha512sums=('890c0f1f946dfd9a9bde2ec0079c55dc23b328e04780e6baf8c580dfd068bf37a5b2e00e12119be6529a6e0893d4f711145e04c349ccfdf7ef91e87cef785d36')
docs=("LICENSE")
build() {
  cd ..
  cd magic-wormhole
  python3 setup.py install --root=$PKG --optimize=1
  mkdir -p $PKG/usr/doc/${pkgname}-${pkgver}
  pandoc -s -f gfm -t html5 \
  -o $PKG/usr/doc/${pkgname}-${pkgver}/README.html README.md
  pandoc -s -f gfm -t html5 \
  -o $PKG/usr/doc/${pkgname}-${pkgver}/NEWS.html NEWS.md
}
