blob: bfb3afc92a425fff625fb451eb33ad597a6a879f (
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.1'
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=('328d686fb03fbe624f06eab560ef812e9507a10a228f69c24505bb044152b2fa05638abea65ac5f6daeb753cfd17495920bb2dbbcd25e0f788568cf4c0af10c7')
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"
}
|