Skip to content

Commit 1615932

Browse files
committed
fix(pkgbuild): fix lto flags conflict in pkgbuild-git (fix #4)
1 parent 5c59daf commit 1615932

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codegraph-rs-git/
2+
*.log
3+
*.pkg.tar.zst

packaging/aur/codegraph-rs-git/PKGBUILD

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Maintainer: Cleboost <clement.balarot@gmail.com>
22
pkgname=codegraph-rs-git
3-
pkgver=r0.g0000000
3+
pkgver=r350.g5c59daf
44
pkgrel=1
55
pkgdesc="Local-first code intelligence: tree-sitter knowledge graph + MCP server (git)"
66
arch=('x86_64' 'aarch64')
77
url="https://github.com/Cleboost/codegraph-rs"
88
license=('MIT')
9-
depends=('gcc-libs')
10-
makedepends=('rust' 'cargo' 'git' 'gcc')
9+
depends=('gcc-libs' 'sqlite')
10+
makedepends=('rust' 'cargo' 'git')
1111
provides=('codegraph')
1212
conflicts=('codegraph' 'codegraph-rs-bin')
1313
source=("$pkgname::git+$url.git")
@@ -21,22 +21,21 @@ pkgver() {
2121
prepare() {
2222
cd "$pkgname"
2323
export RUSTUP_TOOLCHAIN=stable
24+
export CARGO_HOME="$srcdir/.cargo"
2425
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
2526
}
2627

2728
build() {
2829
cd "$pkgname"
2930
export RUSTUP_TOOLCHAIN=stable
31+
export CARGO_HOME="$srcdir/.cargo"
3032
export CARGO_TARGET_DIR=target
33+
export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
34+
export CFLAGS+=" -ffat-lto-objects"
35+
export RUSTFLAGS+=" --remap-path-prefix=$srcdir=/build"
3136
cargo build --frozen --release -p codegraph
3237
}
3338

34-
check() {
35-
cd "$pkgname"
36-
export RUSTUP_TOOLCHAIN=stable
37-
cargo test --frozen --workspace
38-
}
39-
4039
package() {
4140
cd "$pkgname"
4241
install -Dm755 target/release/codegraph "$pkgdir/usr/bin/codegraph"

0 commit comments

Comments
 (0)