mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-04-11 20:00:55 +01:00
Compare commits
10 commits
9ea4daacbf
...
a96848c560
Author | SHA1 | Date | |
---|---|---|---|
a96848c560 | |||
03618acc2d | |||
04cc042671 | |||
aad9e45c76 | |||
94a5fcf8ef | |||
94f5b37a43 | |||
1352efc33e | |||
ec89aaad51 | |||
7d3b7d9b7d | |||
326f40bfb5 |
1 changed files with 10 additions and 1 deletions
|
@ -17,7 +17,10 @@ BuildRequires: rust
|
|||
BuildRequires: cargo
|
||||
BuildRequires: just
|
||||
BuildRequires: clang
|
||||
BuildRequires: perl
|
||||
%ifarch aarch64
|
||||
BuildRequires: binutils-aarch64-linux-gnu
|
||||
BuildRequires: gcc-c++-aarch64-linux-gnu
|
||||
BuildRequires: gcc-aarch64-linux-gnu
|
||||
BuildRequires: musl-devel
|
||||
%endif
|
||||
|
@ -35,7 +38,13 @@ Requires: glibc
|
|||
|
||||
%prep
|
||||
%setup -q -n lune-%{version}
|
||||
|
||||
# Removes the first line containing clippy lint attribute which is falsely flagged as a shebang in build
|
||||
find . -type f -name "*.rs" -exec perl -i -ne 'print unless /^\#!\[/ ' {} +
|
||||
cat <<EOF > .cargo/config.toml
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
rustflags = ["-L", "/usr/lib/gcc/aarch64-linux-gnu/14"]
|
||||
EOF
|
||||
|
||||
%build
|
||||
just build --locked --release
|
||||
|
|
Loading…
Add table
Reference in a new issue