Package Details: ocrs 0.12.2-1

Git Clone URL: https://aur.archlinux.org/ocrs.git (read-only, click to copy)
Package Base: ocrs
Description: a modern OCR engine written in Rust
Upstream URL: https://github.com/robertknight/ocrs
Licenses: MIT, Apache-2.0
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 0
Popularity: 0.000000
First Submitted: 2024-01-03 18:43 (UTC)
Last Updated: 2026-03-28 15:00 (UTC)

Latest Comments

yogo1212 commented on 2025-11-19 19:04 (UTC) (edited on 2025-11-19 19:05 (UTC) by yogo1212)

@alerque the package now builds with the packaged rust toolchain :-)

-makedepends=(cargo-nightly)
 _tag="$pkgname-cli-v$pkgver"
 _archive="$pkgname-$_tag"
 source=("$url/archive/$_tag/$_archive.tar.gz")
 sha256sums=('02848ee5fb16295e99f0ea0ecdbfc16863024798ff5dd88817556a812d4b3fe3')

 prepare() {
        cd "$_archive"
-       rustup default nightly-2025-02-08
        cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }

 _srcenv() {
        cd "$_archive"
-       export RUSTUP_TOOLCHAIN=nightly
        export CARGO_TARGET_DIR=target
        CFLAGS+=' -ffat-lto-objects'
 }