blob: 8e385fd04a8c6fda434b00b475845ecdd4c4b923 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Maintainer: Jay Chu <tothesong at gmail dot com>
# Maintainer: Berrit Birkner <aur at bbirkner dot de>
# Contributor: Grafcube <grafcube at disroot dot org>
_anki=anki
_aqt=aqt
_py=cp39
pkgname=anki-bin
pkgver=24.06.3
pkgrel=1
pkgdesc='Helps you remember facts (like words/phrases in a foreign language) efficiently.
Installed with wheel.'
arch=('x86_64' 'aarch64')
url='https://apps.ankiweb.net/'
license=('AGPL3')
depends=(
# anki and aqt
'python-beautifulsoup4'
'python-requests'
# aqt
'python-flask'
'python-flask-cors'
'python-jsonschema'
'python-pyqt6'
'python-pyqt6-webengine'
'python-send2trash'
'python-waitress'
# anki
'python-decorator'
'python-distro'
'python-markdown'
'python-orjson'
'python-protobuf'
# requests
'python-pysocks'
# pyqt6
'qt6-svg'
)
makedepends=(
'python-installer'
)
optdepends=(
'lame: record sound'
'mpv: play sound. prefered over mplayer'
'mplayer: play sound'
)
provides=(anki=$pkgver)
conflicts=(anki)
_anki_whl_x86_64="$_anki-$pkgver-$_py-abi3-manylinux_2_28_x86_64.whl"
_anki_whl_aarch64="$_anki-$pkgver-$_py-abi3-manylinux_2_31_aarch64.whl"
_aqt_whl="$_aqt-$pkgver-py3-none-any.whl"
source=(
"https://files.pythonhosted.org/packages/py3/${_aqt::1}/$_aqt/$_aqt_whl"
"runanki-$pkgver.py::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/runanki.py"
"anki-$pkgver.1::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/bundle/lin/anki.1"
"anki-$pkgver.desktop::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/bundle/lin/anki.desktop"
"anki-$pkgver.png::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/bundle/lin/anki.png"
"anki-$pkgver.xml::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/bundle/lin/anki.xml"
"anki-$pkgver.xpm::https://raw.githubusercontent.com/ankitects/anki/$pkgver/qt/bundle/lin/anki.xpm"
)
source_x86_64=(
"https://files.pythonhosted.org/packages/$_py/${_anki::1}/$_anki/$_anki_whl_x86_64"
)
source_aarch64=(
"https://files.pythonhosted.org/packages/$_py/${_anki::1}/$_anki/$_anki_whl_aarch64"
)
noextract=("${source[@]##*/}")
sha256sums=('6c6638b861544555f39dd16f72d99100fad0aab2a6fa6b40f6bd7349693271a7'
'9648e7e915f51f08e05c48ef5f39b4015922fe1cf3d7f2895535ef10ef4507ae'
'8b9fec8fdf2897b4722f8cee169e9fb1e46cee90d3fb03ee12587e30c2f5dad7'
'3829ce614aaea9eb1e57abf4c269647cc87ccc6d4755c3b2563ce44e30992ae2'
'97ad2134ef1a7686789c7becd8bd05dd8693cf0d3127951ca6ba7b29a80b402a'
'2845a528fb3a064b67404a03d72bfaba9b421cb220b25228b815946c6553ce38'
'd814c62e38246b6e4ba73ee037647a29675925167518137f05a8f9e60c258b6e')
sha256sums_x86_64=('e03959487c5664db136ec7809d864d03141a3ce356d4b6354ceeb7dd5b8c9d37')
sha256sums_aarch64=('dcd7a1f828c4fb367d5147f012120a1e18e8d7607ed64c69e559b27b5185819a')
package() {
python -m installer --destdir="$pkgdir" $(eval echo "\${_anki_whl_$CARCH}")
python -m installer --destdir="$pkgdir" $_aqt_whl
install -Dm755 runanki-$pkgver.py "$pkgdir/usr/bin/anki"
install -Dm644 anki-$pkgver.1 "$pkgdir/usr/share/man/man1/anki.1"
install -Dm644 anki-$pkgver.desktop "$pkgdir/usr/share/applications/anki.desktop"
install -Dm644 anki-$pkgver.png "$pkgdir/usr/share/pixmaps/anki.png"
install -Dm644 anki-$pkgver.xml "$pkgdir/usr/share/mime/packages/anki.xml"
install -Dm644 anki-$pkgver.xpm "$pkgdir/usr/share/pixmaps/anki.xpm"
}
|