pdf-inspector

LOW
maintainer nvidiahater 0 votes scanned 2026-09-05 18:00:42.527733
View on AUR
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

1pkgname=pdf-inspector
2pkgver=1.15.0
3pkgrel=1
4pkgdesc="Native CLI tools for PDF classification and Markdown extraction"
5arch=('x86_64' 'aarch64')
6url="https://github.com/firecrawl/pdf-inspector"
7license=('MIT' 'BSD-3-Clause')
8depends=('gcc-libs' 'glibc')
9makedepends=('cargo')
10options=('!debug')
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12sha256sums=('156fbfed4765a4a9e3974f8b402a4fd04420301d1d960c0ca2963a1b2ee8a29f')
13
14prepare() {
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
21build() {
22 cd "${pkgname}-${pkgver}"
23 cargo build --release --locked --offline --bin pdf2md --bin detect-pdf
24}
25
26package() {
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)SeverityRules
2026-09-05 18:00:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion