ccalc-git
LOW
maintainer ilovemikael
0 votes
scanned 2026-10-25 19:43:04.801001
Why flagged
The package builds from the project's own Git repository, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
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.
Low
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from the project's own Git repository, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
PKGBUILD
1
# PKGBUILD forked from https://gitea.artixlinux.org/packages/calc by:
2
# Maintainer: Andrew Crerar <crerar@archlinux.org>
3
# Contributor: Kyle Keen <keenerd@gmail.com>
4
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
5
6
# Maintainer: ilovemikael <itsmeguys2247 at gmail dot com>
7
_pkgname=calc
8
pkgname=ccalc-git
9
pkgver=2.17.0.2.r9.gc8edd3e
10
pkgrel=1
11
pkgdesc="Arbitrary precision console calculator"
12
arch=(x86_64)
13
url="https://github.com/lcn2/calc"
14
license=(LGPL-2.1-only)
15
depends=(readline)
16
makedepends=(mandoc)
17
source=(git+$url)
18
b2sums=('SKIP')
19
20
pkgver() {
21
git -C $_pkgname describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
22
}
23
24
prepare() {
25
cd "${_pkgname}"
26
27
sed -i 's/${CC} ${LIBCALC_SHLIB}/${CC} ${LDFLAGS} ${LIBCALC_SHLIB}/' Makefile
28
sed -i 's/${CC} ${LIBCUSTCALC_SHLIB}/${CC} ${LDFLAGS} ${LIBCUSTCALC_SHLIB}/' custom/Makefile
29
}
30
31
build() {
32
cd "${_pkgname}"
33
34
make \
35
USE_READLINE="-DUSE_READLINE" \
36
READLINE_LIB="-lreadline" \
37
READLINE_EXTRAS="-lhistory -lncurses" \
38
EXTRA_CFLAGS="${CPPFLAGS} ${CFLAGS} -Wno-error=format-security" \
39
EXTRA_LDFLAGS="${LDFLAGS}" \
40
ARCH_CFLAGS="" \
41
LD_SHARE="" \
42
DEBUG=""
43
}
44
45
check() {
46
cd "${_pkgname}"
47
48
make chk
49
}
50
51
package() {
52
cd "${_pkgname}"
53
54
make T="${pkgdir}" install
55
mv "${pkgdir}/usr/bin/cscript" "${pkgdir}/usr/share/calc/"
56
}
57
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-25 19:43:04 | Low | 2 |