pdf-inspector
LOW
maintainer nvidiahater
0 votes
scanned 2026-09-05 18:00:42.527733
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
pkgname=pdf-inspector
2
pkgver=1.15.0
3
pkgrel=1
4
pkgdesc="Native CLI tools for PDF classification and Markdown extraction"
5
arch=('x86_64' 'aarch64')
6
url="https://github.com/firecrawl/pdf-inspector"
7
license=('MIT' 'BSD-3-Clause')
8
depends=('gcc-libs' 'glibc')
9
makedepends=('cargo')
10
options=('!debug')
11
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12
sha256sums=('156fbfed4765a4a9e3974f8b402a4fd04420301d1d960c0ca2963a1b2ee8a29f')
13
14
prepare() {
15
cd "${pkgname}-${pkgver}"
16
# Load installed CMaps instead of files in the build directory.
17
sed -i 's|Path::new(env!("CARGO_MANIFEST_DIR"))|Path::new("/usr/share/pdf-inspector")|; /\.join("external")/d' src/tounicode.rs
18
cargo fetch
19
}
20
21
build() {
22
cd "${pkgname}-${pkgver}"
23
cargo build --release --locked --offline --bin pdf2md --bin detect-pdf
24
}
25
26
package() {
27
cd "${pkgname}-${pkgver}"
28
install -Dm755 target/release/pdf2md "${pkgdir}/usr/bin/pdf2md"
29
install -Dm755 target/release/detect-pdf "${pkgdir}/usr/bin/detect-pdf"
30
install -Dm644 external/bcmaps/*.bcmap -t "${pkgdir}/usr/share/${pkgname}/bcmaps/"
31
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
32
install -Dm644 external/bcmaps/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-bcmaps"
33
}
34
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 18:00:42 | Low | 1 |