blob: 90a8ccbe7519934fae7c1793ad42e8aed8750f22 (
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
|
# Maintainer: Vlad Pirlog <(firstname) at (lastname) dot com>
pkgname='extract-otp-secrets'
pkgver='2.9.0'
pkgrel=1
pkgdesc='Extract one time password secrets from QR codes exported by two-factor authentication apps'
arch=('x86_64')
url='https://github.com/scito/extract_otp_secrets'
license=('GPL-3.0-or-later')
depends=('glibc' 'libglvnd' 'libice' 'libsm' 'mpdecimal' 'tk' 'zbar' 'zlib')
makedepends=('git' 'python')
source=("${pkgname}-${pkgver}::git+https://github.com/scito/extract_otp_secrets.git#tag=v${pkgver}")
b2sums=('562f6b7e0e4301409a5db991067a87aa5037aa41198ef8a6415a5f38e88e7119f31c2bbbb30e85c3525d30f7cb525b0405b99cad29d2a8eeac4e991a233e8235')
build() {
cd "${pkgname}-${pkgver}"
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install --upgrade -r requirements-dev.txt -r requirements.txt
pyinstaller -y \
--add-data 'venv/__yolo_v3_qr_detector/:__yolo_v3_qr_detector/' \
--onefile \
--name extract_otp_secrets \
src/extract_otp_secrets.py
deactivate
rm -rf venv
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 dist/extract_otp_secrets "${pkgdir}/usr/bin/extract-otp-secrets"
}
|