# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=xkcdpass pkgver=1.11.1 pkgrel=0 pkgdesc="Generate secure multiword passwords/passphrases" url="https://github.com/redacted/XKCD-password-generator" arch="noarch" license="BSD" 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 || return 1 } 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="2e2b0c34c31856f8d20d33b8d94850a0c6aacfb12d37a837043e8420d44f7171638dc3be5248a60dbad9f34892a21147ce065e03013b9c63124c39cfa8dab5cc xkcdpass-1.11.1.tar.gz"