aboutsummaryrefslogtreecommitdiffstats
path: root/community/xkcdpass/APKBUILD
blob: 52cd02b1cab03486ffc6e6fa2e508af63f17dc67 (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
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=xkcdpass
pkgver=1.16.5
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 py3-setuptools"
subpackages="py3-$pkgname:py3"
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz
        python-to-python3.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="dc0ffdb0b651f5f0fb1eb3276d3e3d849d0d63f9a9b18fe4f5eaa87eab3e90d1292d411e3909c881621b3e330b5a3ac5f9905b27ad048ab33d84c3fdc8428087  xkcdpass-1.16.5.tar.gz
23a7c50a96e7d854bdbfdb87852229b147d1f892d05f9d64d899199c0eb7276638c908f8dee17880cf4f611a17565ce1c117c5dfaca9117379ce1e7655f30808  python-to-python3.patch"