liblinear
MEDIUM
maintainer agony4001
7 votes
scanned 2026-10-28 13:50:29.593976
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
Medium
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:22
source=("https://www.csie.ntu.edu.tw/~cjlin/$pkgbase/$pkgbase-$pkgver.tar.gz")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: apnea <27015 at riseup dot net>
2
# Contributor: MoetaYuko <loli at yuko dot moe>
3
# Contributor: jiuren <qiuwei1987@gmail.com>
4
# Contributor: Benoit Favre <benoit.favre@lif.univ-mrs.fr>
5
# Contributor: Kristof Marussy <kris7topher@gmail.com>
6
# Contributor: Daniel Bermond < gmail-com: danielbermond >
7
# Contributor: saxonbeta <saxonbeta at gmail>
8
# Contributor: Pierre Gueth <pierre.gueth at gmail>
9
# Contributor: Daniel YC Lin <dlin.tw at gmail>
10
# Contributor: Tim Huetz <tim at huetz biz>
11
12
pkgbase=liblinear
13
pkgname=(liblinear python-liblinear)
14
pkgver=2.50
15
pkgrel=1
16
pkgdesc="A Library for Large Linear Classification"
17
arch=('x86_64')
18
url="https://www.csie.ntu.edu.tw/~cjlin/liblinear/"
19
license=('BSD')
20
depends=('gcc-libs' 'python-scipy')
21
makedepends=('gcc' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
22
source=("https://www.csie.ntu.edu.tw/~cjlin/$pkgbase/$pkgbase-$pkgver.tar.gz")
23
sha256sums=('e5eeafe2159c41148b59304da2ba0ed12648e3d491ce2b9625058e174e96ca29')
24
25
build() {
26
cd "${pkgbase}-${pkgver}"
27
make lib all
28
29
cd python
30
python -m build --wheel --no-isolation
31
}
32
33
package_liblinear() {
34
cd "${pkgbase}-${pkgver}"
35
36
local _sover
37
_sover="$(find . -maxdepth 1 -type f -name 'liblinear.so.*' | awk -F'.' '{ print $NF }')"
38
39
# binaries
40
install -D -m755 predict "${pkgdir}/usr/bin/liblinear-predict"
41
install -D -m755 train "${pkgdir}/usr/bin/liblinear-train"
42
43
# library
44
install -D -m755 "liblinear.so.${_sover}" -t "${pkgdir}/usr/lib"
45
pushd "${pkgdir}/usr/lib"
46
ln -s "liblinear.so.${_sover}" liblinear.so
47
popd
48
49
# header
50
install -D -m644 linear.h -t "${pkgdir}/usr/include/liblinear"
51
52
# license
53
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
54
}
55
56
package_python-liblinear() {
57
pkgdesc="Python bindings for liblinear"
58
depends=('liblinear' 'python' 'python-scipy')
59
60
cd "${pkgbase}-${pkgver}/python"
61
python -m installer --destdir="${pkgdir}" dist/*.whl
62
63
# license
64
install -D -m644 ../COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-28 13:50:29 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |