leetcode-fsrs-git
LOW
maintainer SoleilSaint
0 votes
scanned 2026-09-26 05:14:08.085534
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: SaintFore <forevergoodforest@outlook.com>
2
3
pkgname=leetcode-fsrs-git
4
pkgver=2.0.0.r101.gb98d4ca
5
pkgrel=1
6
pkgdesc="Terminal-first LeetCode review planner powered by FSRS (development version)"
7
arch=('any')
8
url="https://github.com/SaintFore/LeetCodeCLI"
9
license=('MIT')
10
depends=(
11
'python'
12
'python-fsrs>=6.3'
13
'python-keyring>=25'
14
'python-requests>=2.32'
15
'python-textual>=8.2'
16
'python-typer>=0.27'
17
)
18
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
19
checkdepends=('python-pytest' 'python-pytest-asyncio')
20
provides=('leetcode-fsrs')
21
conflicts=('leetcode-fsrs' 'leetcode-fsrs-cli' 'leetcode-fsrs-cli-bin')
22
source=('leetcode-fsrs::git+https://github.com/SaintFore/LeetCodeCLI.git#branch=main')
23
b2sums=('SKIP')
24
25
pkgver() {
26
cd leetcode-fsrs
27
local upstream revision commit
28
upstream=$(sed -n 's/^version = "\([0-9.]\+\)"/\1/p' pyproject.toml)
29
revision=$(git rev-list --count HEAD)
30
commit=$(git rev-parse --short HEAD)
31
printf '%s.r%s.g%s' "$upstream" "$revision" "$commit"
32
}
33
34
build() {
35
cd leetcode-fsrs
36
python -m build --wheel --no-isolation
37
}
38
39
check() {
40
cd leetcode-fsrs
41
python -m pytest -q
42
}
43
44
package() {
45
cd leetcode-fsrs
46
python -m installer --destdir="$pkgdir" dist/*.whl
47
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
48
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
49
install -Dm644 docs/architecture.md "$pkgdir/usr/share/doc/$pkgname/architecture.md"
50
install -Dm644 docs/sync.md "$pkgdir/usr/share/doc/$pkgname/sync.md"
51
}
52
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-26 05:14:08 | Low | 1 |