aboutsummaryrefslogtreecommitdiffstats
path: root/community/xkcdpass/APKBUILD
blob: 8368c3e920977a32235f18f908d616f0ccb651dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=xkcdpass
pkgver=1.16.2
pkgrel=0
pkgdesc="Generate secure multiword passwords/passphrases"
url="https://github.com/redacted/XKCD-password-generator"
arch="noarch"
license="BSD-3-Clause"
depends="py3-xkcdpass"
makedepends="python3-dev"
checkdepends="python2"
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
}

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="0f39a5b0bf1cb5c799cc7adbb115dcdc766e3d8530e88b49c1089a6b97ea71fdd0877f154677bae509e0250a11ad93dffaae6efa00d0813081456a74490623e5  xkcdpass-1.16.2.tar.gz"