optionsearch
LOW
maintainer horizzon
0 votes
scanned 2026-09-16 15:22:50.295451
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: Gabriel <horizzon3507>
2
pkgname=optionsearch
3
pkgver=0.2.0
4
pkgrel=1
5
pkgdesc='Instant local-first file search for Linux (Option family)'
6
arch=('x86_64')
7
url='https://github.com/fireflylabss/optionSearch'
8
license=('Apache-2.0')
9
depends=(
10
'gcc-libs'
11
'glibc'
12
'gtk4'
13
'libadwaita'
14
)
15
makedepends=(
16
'cargo'
17
)
18
optdepends=('poppler: PDF text previews via pdftotext')
19
provides=('needle' 'nld')
20
conflicts=('needle')
21
# Renamed from needle in 0.2.0; the old package must be replaced, not
22
# co-installed, since both own /usr/bin/needle.
23
replaces=('needle')
24
options=('!lto')
25
# Path dep: workspace expects ../optionSDK next to the extracted sources.
26
_optionsdk_ver=0.1.4
27
# Channeled release tag (Option mixed/stable). pkgver stays numeric for the AUR;
28
# the source archive points at the exact tag.
29
_tag=v0.2.0m-stable
30
source=(
31
"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$_tag.tar.gz"
32
"optionSDK-$_optionsdk_ver.tar.gz::https://github.com/fireflylabss/optionSDK/archive/refs/tags/v$_optionsdk_ver.tar.gz"
33
)
34
sha256sums=(
35
'70f734428e05d83290ac9a81e52a8ea778ac72149a932a0426854fa4cf6cdd10'
36
'fadd75e0c6ade33018fb741a2f7e395649fff2833f6d08dde5c42459c37012a7'
37
)
38
39
_srcdir="optionSearch-${_tag#v}"
40
41
prepare() {
42
# Cargo.toml: optionSDK = { path = "../optionSDK", ... }
43
ln -sfn "$srcdir/optionSDK-$_optionsdk_ver" "$srcdir/optionSDK"
44
45
cd "$_srcdir"
46
export RUSTUP_TOOLCHAIN=stable
47
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
48
}
49
50
build() {
51
cd "$_srcdir"
52
export RUSTUP_TOOLCHAIN=stable
53
export CARGO_TARGET_DIR=target
54
cargo build --frozen --release -p optionsearch-cli -p optionsearch-gui
55
}
56
57
check() {
58
cd "$_srcdir"
59
export RUSTUP_TOOLCHAIN=stable
60
export CARGO_TARGET_DIR=target
61
cargo test --frozen --release -p optionsearch-core
62
}
63
64
package() {
65
cd "$_srcdir"
66
install -Dm755 target/release/optionsearch "$pkgdir/usr/bin/optionsearch"
67
install -Dm755 target/release/optionsearch-gtk "$pkgdir/usr/bin/optionsearch-gtk"
68
ln -s optionsearch "$pkgdir/usr/bin/nld"
69
ln -s optionsearch-gtk "$pkgdir/usr/bin/needle"
70
install -Dm644 "packaging/optionsearch.desktop" \
71
"$pkgdir/usr/share/applications/io.option.search.desktop"
72
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
73
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
74
install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
75
}
76
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-16 15:22:50 | Low | 1 |