# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=xkcdpass pkgver=1.14.2 pkgrel=0 pkgdesc="Generate secure multiword passwords/passphrases" url="https://github.com/redacted/XKCD-password-generator" arch="noarch" license="BSD-3" 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 fix-bin-name.patch" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 setup.py test } 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="3097cafb53fa4e9a1ae0c067ef8254660e73527653b32294ae5a7f61dec94382da088bace59406b9ae5ef47028320536746299ea3fb55eeede3286d60b52cb56 xkcdpass-1.14.2.tar.gz 06a4f5c5384e64ed79eebfa3f5e679bcfd9d7d6b31f960fdad6bbe433c68e174e06edeed5ed542c1f7cd8e05e760bb55a29914019f957764f5d8ebc1ab6ea562 fix-bin-name.patch"