# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=xkcdpass pkgver=1.14.1 pkgrel=0 pkgdesc="Generate secure multiword passwords/passphrases" url="https://github.com/redacted/XKCD-password-generator" arch="noarch" license="BSD-3" options="!check" depends="py3-xkcdpass" makedepends="python3-dev" subpackages="py3-$pkgname:py3" source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" python3 setup.py build } # Will be ready with the next release #check() { # cd "$builddir" # python3 -m unittest tests/ #} package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } py3() { pkgdesc="Python library for $pkgname" depends="python3" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="9a0c4c4b46c0d60a3ea59103c01d615c3660bc0b62f3f172a83a9acb4f9a066105b38f33cba7b0d2f7af93ba5da368a035066891ff0e5f3dca8cef90d2d50f85 xkcdpass-1.14.1.tar.gz"