optionsearch

LOW
maintainer horizzon 0 votes scanned 2026-09-16 15:22:50.295451
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

1# Maintainer: Gabriel <horizzon3507>
2pkgname=optionsearch
3pkgver=0.2.0
4pkgrel=1
5pkgdesc='Instant local-first file search for Linux (Option family)'
6arch=('x86_64')
7url='https://github.com/fireflylabss/optionSearch'
8license=('Apache-2.0')
9depends=(
10 'gcc-libs'
11 'glibc'
12 'gtk4'
13 'libadwaita'
14)
15makedepends=(
16 'cargo'
17)
18optdepends=('poppler: PDF text previews via pdftotext')
19provides=('needle' 'nld')
20conflicts=('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.
23replaces=('needle')
24options=('!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
30source=(
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)
34sha256sums=(
35 '70f734428e05d83290ac9a81e52a8ea778ac72149a932a0426854fa4cf6cdd10'
36 'fadd75e0c6ade33018fb741a2f7e395649fff2833f6d08dde5c42459c37012a7'
37)
38
39_srcdir="optionSearch-${_tag#v}"
40
41prepare() {
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
50build() {
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
57check() {
58 cd "$_srcdir"
59 export RUSTUP_TOOLCHAIN=stable
60 export CARGO_TARGET_DIR=target
61 cargo test --frozen --release -p optionsearch-core
62}
63
64package() {
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)SeverityRules
2026-09-16 15:22:50 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