Created
January 17, 2025 14:37
-
-
Save yogo1212/079548c4f1edf7c0361281ef563737f2 to your computer and use it in GitHub Desktop.
rxing pkgbuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=rxing | |
pkgver=0.6.1 | |
pkgrel=1 | |
pkgdesc='pure Rust port of ZXing' | |
arch=(x86_64) | |
url="https://github.com/rxing-core/$pkgname" | |
license=(MIT Apache-2.0) | |
depends=(gcc-libs | |
glibc) | |
#makedepends=(rust) | |
_tag="v$pkgver" | |
_archive="$pkgname-$_tag" | |
source=("$url/archive/$_tag/$_archive.tar.gz") | |
sha256sums=('8bf7b8c145e06cceb45c320a8d053c294a652feb4feb5bf838a71b210b1272ef') | |
_dir="$pkgname-$pkgver/crates/cli" | |
build() { | |
cd "$_dir" | |
#export RUSTUP_TOOLCHAIN=nightly | |
export CARGO_TARGET_DIR=target | |
CFLAGS+=' -ffat-lto-objects' | |
cargo build --release | |
} | |
package() { | |
cd "$_dir" | |
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname-cli" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment