# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'xkcdpass'
setvar pkgver = '1.12.0'
setvar pkgrel = '0'
setvar pkgdesc = ""Generate secure multiword passwords/passphrases""
setvar url = ""https://github.com/redacted/XKCD-password-generator""
setvar arch = ""noarch""
setvar license = ""BSD-3""
setvar depends = ""py3-xkcdpass""
setvar makedepends = ""python3-dev""
setvar subpackages = ""py3-$pkgname:py3""
setvar source = ""https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz""
setvar builddir = ""$srcdir"/$pkgname-$pkgver"

proc build {
	cd $builddir
	python3 setup.py build || return 1
}

proc package {
	cd $builddir
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

proc py3 {
	setvar pkgdesc = ""Python library for $pkgname""
	setvar depends = ""python3""
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

setvar sha512sums = ""c63877fe9dea9c12027121ae9a7ec28253c8f2dc920a571a0b7ee9bcc6930734df7006c95b009cc5dabbe23109915787065328eb41cc37861f950e9ea25712d3  xkcdpass-1.12.0.tar.gz""