aboutsummaryrefslogtreecommitdiffstats
path: root/community/xkcdpass/APKBUILD
blob: bfd65de8fb143df03575c20e2ce0d954ab6e32e1 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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"