lunar
LOW
maintainer yangtsesu
0 votes
scanned 2026-09-28 09:20:32.001266
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: Yangtse Su <yangtsesu@gmail.com>
2
3
pkgname=lunar
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc="Chinese lunisolar calendar CLI: a day profile, month and year grids, and a 八字 chart"
7
arch=('x86_64')
8
url="https://github.com/YangtseSu/lunar"
9
license=('GPL-3.0-or-later')
10
# libgcc provides libgcc_s.so.1, which the binary needs at runtime and which is
11
# not part of glibc; tzdata is read by tz-rs's TimeZone::local(), which parses
12
# the system tzdb and carries no copy of it. Verified with ldd and readelf.
13
depends=('glibc' 'libgcc' 'tzdata')
14
makedepends=('rust' 'cargo')
15
# The project sets lto, codegen-units and strip in its own [profile.release],
16
# so makepkg's defaults would apply a second, different set of flags.
17
options=('!lto' '!strip')
18
19
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
20
sha256sums=('a875a333e356ef3c7f676b34b3754a45df1cb6562e928be95a662bace03b9c8f')
21
22
build() {
23
cd "$pkgname-$pkgver"
24
cargo build --release --frozen
25
}
26
27
check() {
28
cd "$pkgname-$pkgver"
29
cargo test --frozen
30
}
31
32
package() {
33
cd "$pkgname-$pkgver"
34
35
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
36
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
37
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
38
install -Dm644 README.zh-CN.md "$pkgdir/usr/share/doc/$pkgname/README.zh-CN.md"
39
}
40
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-28 09:20:32 | Low | 1 |